示例#1
0
 public static void Apply(DbContext context)
 {
     context.AddOrUpdateSeed(null,
                             new User
     {
         Id        = 1,
         Password  = "******",
         Email     = "*****@*****.**",
         FirstName = "Admin",
         LastName  = "Admin"
     },
                             new User
     {
         Id        = 2,
         Password  = "******",
         Email     = "*****@*****.**",
         FirstName = "RestUser",
         LastName  = "RestUser"
     });
 }