Entity Framework - Have column in our model without including it to the database
Please see the sample below:
public class TheModelSample
{
public int Id { get; set; }
public string UserName { get; set; }
[NotMapped]
public string ConfirmPassword { get; set; }
}
No hay comentarios.:
Publicar un comentario