martes, 9 de mayo de 2017

Entity Framework - Have column in our model without including it to the database

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