Inheritance: TableAction
Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 protected TableAddAction TableDef(string name, Action<TableAddAction> definition)
 {
     var table = new TableAddAction(null, name);
     definition(table);
     return table;
 }