Ejemplo n.º 1
0
 public static LoginCredentials Map(this RegisteredUserEntity entity)
 {
     return(new LoginCredentials
     {
         LoginId = entity.loginId,
         MustChangePassword = ((UserFlags)entity.flags).IsFlagSet(UserFlags.MustChangePassword),
         PasswordHash = entity.passwordHash
     });
 }
Ejemplo n.º 2
0
 public static void MapTo(this LoginCredentials credentials, RegisteredUserEntity entity)
 {
     entity.loginId      = credentials.LoginId;
     entity.passwordHash = credentials.PasswordHash;
     entity.flags        = (short)((UserFlags)entity.flags).SetFlag(UserFlags.MustChangePassword, credentials.MustChangePassword);
 }
Ejemplo n.º 3
0
 partial void UpdateRegisteredUserEntity(RegisteredUserEntity instance);
Ejemplo n.º 4
0
 partial void DeleteRegisteredUserEntity(RegisteredUserEntity instance);
Ejemplo n.º 5
0
 partial void InsertRegisteredUserEntity(RegisteredUserEntity instance);