c# - Ignore a specific column in Entity Framework? -
this question has answer here:
- entity framework: ignore columns 6 answers
i have auto generated model database in entity framework version 4.1.10331.0.
i want ignore column entity without using fluent api , without changing objectcontext
dbcontext
(and of course without deleting column sql table) , without marking property generated in model attribute notmapped
, because whenever update context in model column reappear.
can please me in case?
thanks , best regards ben
i don't see problem updating ef each time regenerate model, can propose 2 solutions:
- create view contains columns need, generated in ef.
- create class derived entity show data want. class "application entity" (as know additional management should considered here)
Comments
Post a Comment