Exemplo n.º 1
0
 protected override void PopulateTables(DbObjectCollection <Table> tablesCollection)
 {
     using (var tables = Connection.GetSchema("Tables")) {
         foreach (DataRow row in tables.Rows)
         {
             var table = new SqlCeTable(this, (string)row["TABLE_NAME"]);
             tablesCollection.Add(table);
         }
     }
 }
Exemplo n.º 2
0
 protected override void PopulateTables(DbObjectCollection <Table> tablesCollection)
 {
     using (var tables = this.Connection.GetSchema("Tables")) {
         foreach (DataRow row in tables.Rows)
         {
             var table = new SqlCeTable(this);
             table.Schema = row["TABLE_SCHEMA"] as string;
             table.Name   = row["TABLE_NAME"] as string;
             tablesCollection.Add(table);
         }
     }
 }