Beispiel #1
0
        static void Main(string[] args)
        {
            using (var ctx = new WpContext())
            {
                var usr = new User()
                {
                    Name = "Username"
                };

                ctx.Users.Add(usr);
                ctx.SaveChanges();
            }
        }
Beispiel #2
0
        public void DnConnectionTest()
        {
            using (var ctx = new WpContext())
            {
                var usr = new User()
                {
                    Name = "Username"
                };

                ctx.Users.Add(usr);
                ctx.SaveChanges();
            }
        }