Esempio n. 1
0
 public void TestRemoveAllLikeWithoutCriteria()
 {
     using (TransactionScope tx = new TransactionScope(TransactionScopeOption.Required)) {
         SqlServerStore <Bean> store = new SqlServerStore <Bean>("test");
         store.RemoveAllByCriteria(new FilterCriteria());
         Kinetix.Data.SqlClient.Test.TestDbCommand command = Kinetix.Data.SqlClient.Test.TestDbCommand.LastCommand;
         Assert.AreEqual("delete from BEAN where BEA_PK = @BEA_PK", command.CommandText);
     }
 }