DbContext Code Generation

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
KW
Posts: 135
Joined: Tue 19 Feb 2008 19:12

DbContext Code Generation

Post by KW » Wed 06 Aug 2014 23:47

Is there is a tutorial how to use the Devart EF 6.x DbContext Generator?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: DbContext Code Generation

Post by Shalex » Thu 07 Aug 2014 05:48

You should install dotConnect for MySQL Proffesional Edition (trial). It includes Entity Developer which can be used for creating Entity Framework models only with Oracle. After installing the provider, right click on your project > Add > New Item > Devart Entity Model. Go through the Create Model Wizard, select database objects, choose the DbContext template (instead of default EntityObject) and set its "Fluent Mapping = True" property. Select designer surface and set the Metadata Artifact Processing property of EntityContextModel to Do Not Generate Mapping Files. Save the model to generate the code.
Does this help?

Post Reply