Ignoring all properties but some in Entity Framework 6

c# entity-framework entity-framework-6

Accepted Answer

ZZZ_tmp
3
6/26/2015 8:03:20 AM

Popular Answer

Within the class, specific attributes might be designated as NotMapped.

public class MyPoco
{
    public int Id { get; set; }

    [NotMapped]
    public string Name { get; set; }

    public int SomeSpecialId { get; set; }
}

does not address your "ignore everything but this" problem, but it may make it clear what is and is not included.



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow