protected override void PopulateTables(DbObjectCollection <Table> tablesCollection) { using (var tables = connection.GetSchema("Tables")) { foreach (DataRow row in tables.Rows) { if ((short)row["IS_SYSTEM_TABLE"] == 0) { var tableType = ((string)row["TABLE_TYPE"]).ToUpper(); var table = new FbTable(this, tableType == "VIEW") { TableName = (string)row["TABLE_NAME"] }; var schema = row["TABLE_SCHEMA"] as string; if (!string.IsNullOrEmpty(schema)) { table.TableSchema = schema; } table.Name = table.TableName; tablesCollection.Add(table); } } } }
public FbTrigger(FbTable table, string name) : base(table) { Name = name; this.table = table; }