コード例 #1
0
 private void TrimTables(ref IList <DbObjectTableSource> ret)
 {
     for (int i = 0; i < ret.Count; i++)
     {
         DbObjectTableSource table = ret[i];
         if (table.Alias != null)
         {
             for (int j = 0; j < ret.Count; j++)
             {
                 DbObjectTableSource source = ret[j];
                 for (int k = 0; k < source.DbObject.Identifiers.Count; k++)
                 {
                     Identifier iden = source.DbObject.Identifiers[k];
                     if (iden.Name.ToLower() == table.Alias.Name.ToLower())
                     {
                         ret.Remove(source);
                         j--;
                         i--;
                         break;
                     }
                 }
             }
         }
     }
 }
コード例 #2
0
 public virtual bool Action(DbObjectTableSource source)
 {
     FixIdentifiers(source.DbObject, ObjectType.TABLE, source.DbObject.Identifiers);
     return(false);
 }
コード例 #3
0
 private bool AddAvailTable(DbObjectTableSource node, IList <DbObjectTableSource> list)
 {
     list.Add(node);
     return(true);
 }