static void Main(string[] args) { var context = new SocketDbContext(); var user = new SocketUser(); user.Name = "Billy Mumby"; user.Email = "*****@*****.**"; IPasswordProtectionService passwordProtectionService = new PasswordProtectionService(); var(password, salt) = passwordProtectionService.Encrypt("Test123"); user.Password = password; user.Salt = salt; context.SocketUsers.Add(user); context.SaveChanges(); }
public int Complete() { return(_socketDbContext.SaveChanges()); }