public void TestForFirebird() { // try create table first. DbEntry.From<Mkey3>().Where(Condition.Empty).GetCount(); StaticRecorder.ClearMessages(); // real test var o = new Mkey3 {Name = "test", Age = 18, Gender = true}; DbEntry.Insert(o); Assert.AreEqual(1, StaticRecorder.Messages.Count); AssertSql(@"INSERT INTO ""MKEY3"" (""NAME"",""AGE"",""GENDER"") VALUES (@Name_0,@Age_1,@Gender_2);<Text><30>(@Name_0=test:String,@Age_1=18:Int32,@Gender_2=True:Boolean)"); }
public void TestForFirebird() { // try create table first. DbEntry.From <Mkey3>().Where(Condition.Empty).GetCount(); StaticRecorder.ClearMessages(); // real test var o = new Mkey3 { Name = "test", Age = 18, Gender = true }; DbEntry.Insert(o); Assert.AreEqual(1, StaticRecorder.Messages.Count); AssertSql(@"INSERT INTO ""MKEY3"" (""NAME"",""AGE"",""GENDER"") VALUES (@Name_0,@Age_1,@Gender_2);<Text><30>(@Name_0=test:String,@Age_1=18:Int32,@Gender_2=True:Boolean)"); }