public BaseUser(BaseUser user) { Id = user.Id; FirstName = user.FirstName; LastName = user.LastName; Username = user.Username; Password = user.Password; }
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(); }
public UserWithToken(BaseUser user) : base(user) { }