How to exclude some column from .edmx file, *.csdl ,*.msdl, and *.ssdl dynamically using Database first Approach

懵懂的女人 提交于 2020-01-14 02:29:08

问题


what i am trying to do is exclude few column from EF store and EF modal. for reference there are two method : https://stackoverflow.com/a/40742144/4998968

but i want to exclude column when edmx file is created i.e when i connect my database using Ado.net Data modal option i want few columns to be excluded from edmx as if they don't exists in database. currently i am exploring the entity framework source code but cannot find the exact code that generates .edmx file and store.

example: suppose i have a column "SysStartDate" now i want to exclude this column from all the table having it.

i want to exclude columns from edmx so .csdl ,.msdl, and *.ssdl file doesn't include it.

来源:https://stackoverflow.com/questions/53063836/how-to-exclude-some-column-from-edmx-file-csdl-msdl-and-ssdl-dynamical

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!