Separate context and entity namespaces

Separate context and entity namespaces

Postby tjeuten » Wed 11 Jan 2012 21:18

Hello,

I'm currently experimenting with the dotconnect for MySQL trial, and especially with the integrated entity developer that comes with it, to see if it satisfies my needs.

I'm using VS2010.

I want to structure my solution with following projects, amongst others:

MyApplication.Data
MyApplication.Domain

In the Data project I want the edml model and the generated context.
In the Domain project I want only the generated entities.

I'm using the dbContext template. I have found out how to have the entity class files generate in the Domain project, and the context class file in the Data project. However, the context has the same namespace as the entities, which is the one I set when I right-click in the model and select "model settings", and then fill in the namespace there.

But, I want to have the context class in namespace MyApplication.Data, and the entity classes in MyApplication.Domain.

Is there any way to achieve this, besides manually editing the dbContext template ? I'd like to stick to the predifined template as much as possible.

By the way I have found this topic http://www.devart.com/forums/viewtopic. ... 7ee72a0a89
which talks more or less about what I'm trying to achieve, but I cannot find the dialog boxes stated there...

Thank you for your support.
tjeuten
 
Posts: 2
Joined: Wed 11 Jan 2012 21:04

Postby tjeuten » Fri 13 Jan 2012 10:55

Anybody ?
tjeuten
 
Posts: 2
Joined: Wed 11 Jan 2012 21:04

Postby Shalex » Mon 16 Jan 2012 12:28

We will post here when the functionality of setting context and entity namespaces separately is implemented.
Shalex
Devart Team
 
Posts: 7793
Joined: Thu 14 Aug 2008 12:44

Postby Shalex » Mon 16 Jan 2012 17:48

We recommend you to post your suggestion at http://devart.uservoice.com/forums/105163-ado-net-entity-framework-support/ to make it be implemented sooner.
Shalex
Devart Team
 
Posts: 7793
Joined: Thu 14 Aug 2008 12:44

Re: Separate context and entity namespaces

Postby Shalex » Thu 31 Jan 2013 14:16

  • The Entity Container Namespace properties of the model is implemented
  • The Namespace property of class, complex type, enum is implemented
We will post here when the corresponding build of dotConnect for MySQL is available for download.
Shalex
Devart Team
 
Posts: 7793
Joined: Thu 14 Aug 2008 12:44

Re: Separate context and entity namespaces

Postby Shalex » Fri 05 Apr 2013 10:12

New version of dotConnect for MySQL 7.6 is released!
It can be downloaded from http://www.devart.com/dotconnect/mysql/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=2&t=26316.
Shalex
Devart Team
 
Posts: 7793
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for MySQL