Пример #1
0
 public virtual void Can_add_named_primary_key_to_table()
 {
     DataClient.AddTable(TableFoo,
                         Column.Int32("id").NotNull(),
                         Column.String("name")
                         );
     DataClient.AddNamedPrimaryKey(TableFoo, "pk_" + TableFoo, "id");
 }
Пример #2
0
 public virtual void Can_remove_primary_key_from_table()
 {
     DataClient.AddTable(TableFoo,
                         Column.Int32("id").NotNull(),
                         Column.String("name")
                         );
     DataClient.AddNamedPrimaryKey(TableFoo, "pk1", "id");
     DataClient.RemovePrimaryKey(TableFoo, "pk1");
 }
Пример #3
0
 protected override void ExecuteInternal()
 {
     DataClient.AddNamedPrimaryKey(TableNames[0], PrimaryKeyName, ColumnNames);
 }