c# - Ignore a specific column in Entity Framework? -


this question has answer here:

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:

  1. create view contains columns need, generated in ef.
  2. create class derived entity show data want. class "application entity" (as know additional management should considered here)

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -