public void InsertTest() { Person p = new Person() { Name = "lili", Address = "hunan" }; var result = context.Insert(p); Assert.AreEqual(1, result); }
public void InsertAllTest() { Person p1 = new Person() { Name = "lihong", Address = "湖北" }; Person p2 = new Person() { Name = "zhangming", Address = "唐山" }; context.InsertAll(p1, p2); }