internal static Models.UserAuthentication ToUserAuthentication(this user_authentication userAuthentication) { return(new Models.UserAuthentication { Id = userAuthentication.id, UserId = userAuthentication.user_id, Hash = userAuthentication.hash, Salt = userAuthentication.salt }); }
internal void CreateUserAuthentication(Models.UserAuthentication userAuthentication) { var newUserAuthEntity = new user_authentication { salt = userAuthentication.Salt, hash = userAuthentication.Hash, user_id = userAuthentication.UserId }; _rawrzMeEntities.user_authentication.Add(newUserAuthEntity); _rawrzMeEntities.SaveChanges(); }