예제 #1
0
        private static void Add(DapperDbContext db)
        {
            var user = new User
            {
                Age     = 1,
                Gender  = EnmUserGender.女,
                Name    = "张三",
                OpTime  = DateTime.Now,
                Gender1 = true
            };

            db.Add <User>(user);
        }