public static void Seed(this ModelBuilder modelBuilder) { IEncryptionUtil _encryptionUtil = new EncryptionUtil(); var hash = _encryptionUtil.EncodeSHA1("123456"); var adminId = new Guid("69BD714F-9576-45BA-B5B7-F00649BE00DE"); var clientId = new Guid("69BD714F-9576-45BA-B5B7-F00649BE00DF"); modelBuilder.Entity <UserAdmin>().HasData(new UserAdmin { Id = adminId.ToString(), UserName = "******", Role = "ADMIN", PassWord = hash, Status = "ACTIVE" }); modelBuilder.Entity <UserAdmin>().HasData(new UserAdmin { Id = clientId.ToString(), UserName = "******", Role = "CLIENT", PassWord = hash, Status = "ACTIVE", CreateDate = 1 }); }