Пример #1
0
 public void InsertTest()
 {
     Person p = new Person()
     {
         Name = "lili",
         Address = "hunan"
     };
     var result = context.Insert(p);
     Assert.AreEqual(1, result);
 }
Пример #2
0
        public void InsertAllTest()
        {
            Person p1 = new Person()
            {
                Name = "lihong",
                Address = "湖北"
            };

            Person p2 = new Person()
            {
                Name = "zhangming",
                Address = "唐山"
            };
            context.InsertAll(p1, p2);
        }