Esempio n. 1
0
 public BaseUser(BaseUser user)
 {
     Id        = user.Id;
     FirstName = user.FirstName;
     LastName  = user.LastName;
     Username  = user.Username;
     Password  = user.Password;
 }
Esempio n. 2
0
        public static void Initialize(Context context)
        {
            context.Database.EnsureCreated();

            if (context.Users.Any())
            {
                return;
            }

            var users = new BaseUser[]
            {
                new BaseUser {
                    FirstName = "Test", LastName = "User", Username = "******", Password = "******"
                },
            };

            foreach (BaseUser u in users)
            {
                context.Users.Add(u);
            }
            context.SaveChanges();
        }
Esempio n. 3
0
 public UserWithToken(BaseUser user) : base(user)
 {
 }