Exemplo n.º 1
0
 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
     });
 }
Exemplo n.º 2
0
        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();
        }