コード例 #1
0
        public static void Seed(SecurityContext context)
        {
            var user = new User()
            {
                Id = 1,
                Username = "qbrown",
                Password = "XohImNooBHFR0OVvjcYpJ3NgPQ1qq73WKhHvch0VQtg=",
                Firstname = "Quinn",
                Lastname = "Brown"
            };

            context.Users.AddOrUpdate(user);

            context.SaveChanges();
        }
コード例 #2
0
 public SecurityUow(SecurityContext securityContext)
     : base(securityContext)
 {
 }