public void TestDeleteBy1() { DbEntry.DeleteBy <TestClass>(p => p.Name == "abc"); AssertSql(@"DELETE FROM [Test_Class] WHERE [Name] = @Name_0; <Text><30>(@Name_0=abc:String)"); }
public void TestDelete() { DbEntry.DeleteBy <PersonSqlite>(p => p.FirstName.EndsWith("T")); Assert.AreEqual("DELETE FROM [People] WHERE [Name] LIKE @Name_0;\n<Text><30>(@Name_0=%T:String)", StaticRecorder.LastMessage); }