Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to have two databases in my project (I'm using Sql compact edition). So I need to create two EntitiesModels using Telerik data access, right? I want to know that which of the following ways is better to do it:

1. Adding both EntitesModel.rlinq files in the same project as the classes and other files are in it.
2. Creating a new project and adding EntitesModel.rlinq files there and using the .dll files in the main project in order to manipulating data.

Thank you
Posted

1 solution

Because you are accessing two databases I suggest you that each entity entity model, together with its classes (and possible partial classes), to be in its own assembly/project (DLL), so you will have 2 DLL for accessing the databases.

PS: It is not mandatory to use Telerik data access (you could use Microsoft EF), you have to use it only if your application UI is based on Telerik.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900