public UsuarioDTOS(Int32 usuarioId, String userName, String nombre, String apellido, String contraseña, Nullable<Int32> rolId, Nullable<Boolean> eliminado, Nullable<DateTime> fechaSistema, RolesDTOS roles) { this.UsuarioId = usuarioId; this.UserName = userName; this.Nombre = nombre; this.Apellido = apellido; this.Contraseña = contraseña; this.RolId = rolId; this.Eliminado = eliminado; this.FechaSistema = fechaSistema; this.Roles = roles; }
/// <summary> /// Converts this instance of <see cref="Roles"/> to an instance of <see cref="RolesDTOS"/>. /// </summary> /// <param name="entity"><see cref="Roles"/> to convert.</param> public static RolesDTOS ToDTO(this Roles entity) { if (entity == null) return null; var dto = new RolesDTOS(); dto.RolId = entity.RolId; dto.NombreRol = entity.NombreRol; dto.FechaSistema = entity.FechaSistema; dto.Eliminado = entity.Eliminado; entity.OnDTO(dto); return dto; }
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="RolesDTOS"/> converted from <see cref="Roles"/>.</param> partial static void OnDTO(this Roles entity, RolesDTOS dto);