public static void InitializeTable(UserCenterDbContext context)
 {
     if (context.Users.Any() == false)
     {
         var UserInfos = new UserModel[] {
             new UserModel()
             {
                 UserName = "******", UserPassword = "******", DataState = 1
             },
             new UserModel()
             {
                 UserName = "******", UserPassword = "******", DataState = 1
             }
         };
         foreach (var model in UserInfos)
         {
             context.Users.Add(model);
         }
         context.SaveChanges();
     }
 }
 public static void Initialize(UserCenterDbContext context)
 {
     context.Database.EnsureCreated();
     InitializeTable(context);
 }