Page 1 of 1

draw the model without generating code

Posted: Mon 14 Aug 2017 14:43
by Q.X
Such as drawing a one-to-many relationship on the desinger model without generating code in EF(include csdl,msdl and ssdl)

yes, only show on the model and generate the code in cs with template (without ef csdl ssdl msdl)

Re: draw the model without generating code

Posted: Tue 15 Aug 2017 11:40
by Shalex
You want to work with EF6 model without generating *.csdl / *.msl / *.ssdl, don't you?

Please enable the DbContext template in your *.edml model via Model Explorer > the Templates node and set its Fluent Mapping property to True. Also select designer surface, press F4 (Properties) and set Metadata Artifact Processing to Do Not Generate Mapping Files.

Refer to http://blog.devart.com/entity-developer ... plate.html.

Is that what you need?

Re: draw the model without generating code

Posted: Sat 19 Aug 2017 05:21
by Q.X
Shalex wrote:You want to work with EF6 model without generating *.csdl / *.msl / *.ssdl, don't you?

Please enable the DbContext template in your *.edml model via Model Explorer > the Templates node and set its Fluent Mapping property to True. Also select designer surface, press F4 (Properties) and set Metadata Artifact Processing to Do Not Generate Mapping Files.

Refer to http://blog.devart.com/entity-developer ... plate.html.

Is that what you need?
Yes, but I just want not to generate the entities which I taged

Re: draw the model without generating code

Posted: Mon 21 Aug 2017 08:28
by Shalex
Q.X wrote:I just want not to generate the entities which I taged
If you want not to generate some entities, please remove them from conceptual (CSDL) part of your model. In this case, you can leave them in storage (SSDL) part or remove them from SSDL as well.