Page 1 of 1

Separate context and entity namespaces

Posted: Wed 11 Jan 2012 21:18
by tjeuten
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.

Posted: Fri 13 Jan 2012 10:55
by tjeuten
Anybody ?

Posted: Mon 16 Jan 2012 12:28
by Shalex
We will post here when the functionality of setting context and entity namespaces separately is implemented.

Posted: Mon 16 Jan 2012 17:48
by Shalex
We recommend you to post your suggestion at http://devart.uservoice.com/forums/1051 ... k-support/ to make it be implemented sooner.

Re: Separate context and entity namespaces

Posted: Thu 31 Jan 2013 14:16
by Shalex
  • 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.

Re: Separate context and entity namespaces

Posted: Fri 05 Apr 2013 10:12
by Shalex
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.