Hello,

I download the DataObject.net 4.2 for check it and test it and I have run the samples all is OK no problem.

My question is, how can I create the Model from existing Database like for example from Northwind. I have see how from model the program create and update the database, but how can I do the other side, to tell to create all the files that I need to communicate with Northwind.

I make a lot of search on Internet and did not found an answer, thats why I am asking here. thank you in advanced.

This thread was imported from our support forum. The original discussion may contain more detailed answer. Original topic by Charalampos.

asked Mar 07 '10 at 09:30

Editor's gravatar image

Editor
46156156157


One Answer:

Alex (Xtensive) wrote:

Currently there is no way to do this: DO4 support only code first pattern, but not ActiveRecord / reverse engineer patterns.

We're planning to add ActiveRecord pattern ASAP.


Alex (Xtensive) wrote:

This will be definitely done. We already have most important parts working (here we need mainly cross-DB schema extraction, and it is already there). So basically, we must develop abstract converters of extracted schema to code model to be used with T4 (again, we have the model itself - our XxxDef types), and add such converters for .edmx, etc. later.

  • There must be T4 template itself.

Not really much of work, but... Lack of time.


motuzko wrote:

This will be definitely done. We already have most important parts working (here we need mainly cross-DB schema extraction, and it is already there). So basically, we must develop abstract converters of extracted schema to code model to be used with T4 (again, we have the model itself - our XxxDef types), and add such converters for .edmx, etc. later. + There must be T4 template itself. Not really much of work, but... Lack of time.

Trying to resurrect the conversation... Any progress/ETA on the existing database import?

answered Mar 08 '10 at 06:28

Editor's gravatar image

Editor
46156156157

Unfortunately, there is no progress on this as the .NET 4.0 support is much more demanding for the overwhelming majority of the customers, so we've been busy with that.

(Mar 08 '10 at 06:28) Dmitri Maximov Dmitri%20Maximov's gravatar image

Charalampos wrote: Thank you for your answer.

Please think for future develop (I believe for you this is easy) to create (maybe using T4 files on MS) the model from Database.

(Mar 08 '10 at 06:28) Editor Editor's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA