public TableAddAction AddTable(string name, bool addPrimaryKey, Action<TableAction> definition) { TableAddAction table = new TableAddAction(this, name); if (addPrimaryKey) table.AddInt32(Convention.PrimaryKeyColumn(name)).PrimaryKeyWithIdentity(); definition(table); Actions.Add(table); return table; }
protected TableAddAction TableDef(string name, Action<TableAddAction> definition) { var table = new TableAddAction(null, name); definition(table); return table; }