ModelFirst and different DB

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
JoeRuspante
Posts: 54
Joined: Mon 05 Jul 2010 23:08

ModelFirst and different DB

Post by JoeRuspante » Tue 20 Mar 2012 12:06

I'd like to understand how to change the Database in a ModelFirst application.

In my case I have all this projects in a solution:

-) CORE (the main program. The Model designer creates the classes in this project)

-) MODEL (only the design of the classes. File edml)

-) DAL (the mapping with the DB. The Model designer creates the DbContext in this project)


Now I'd like to add a new DB to the solution (for work with Oralce and SQL Server with the same model).

How can I map in the Model designer (MODEL project) the fact that the class "User" is mapped on Oracle with the table "SYS_USER" and on SQL Server is mapped with the table "MY_USER"?

I hope the request is clear and easy to understand.

Thank you in advance

Shalex
Devart Team
Posts: 8088
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Fri 23 Mar 2012 14:00


Post Reply