private bool CheckForClosureOnExpressionTables(List<DataTable> tableList)
{
Debug.Assert(tableList != null, "tableList shouldnot be null");
foreach (DataTable datatable in tableList)
{
foreach (DataColumn dc in datatable.Columns)
{
if (dc.Expression.Length != 0)
{
DataColumn[] dependency = dc.DataExpression.GetDependency();
for (int j = 0; j < dependency.Length; j++)
{
if (!(tableList.Contains(dependency[j].Table)))
{
return false;
}
}
}
}
}
return true;
}