开发者

Regenerating entity objects via EDMGEN in an MSBUILD project

I have my build executing edmgen successfully howeve开发者_StackOverflow社区r it's generating entity objects for all of my database tables. What I'd like to have it do is only generate for select tables like it currently does in the project locally.

I'm using full generation and passing in a connection string.


There is no possibility to work with a subset of objects in EDMGen. You can try creating a new schema containing only the necessary tables, and run EDMGen for this schema only.


Alternatively, you can create your own version of EdmGen by using the EdmGen2 code base.

In the ModelGen method you can define EntityStoreSchemaFilterEntry filters to select which tables you want.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜