Exemplo n.º 1
0
 public void delete_with_wherecolumn()
 {
     var op = new SqlDeleteOperation { SchemaName = "dbo", TableName = "Foo" };
     op.Where("Bar", 123);
     Assert.AreEqual("DELETE FROM [dbo].[Foo] WHERE [Bar]=@Bar", op.ToString());
 }
Exemplo n.º 2
0
 public void delete_with_schema()
 {
     var op = new SqlDeleteOperation {SchemaName = "dbo", TableName = "Foo"};
     Assert.AreEqual("DELETE FROM [dbo].[Foo]", op.ToString());
 }