How to use more than one database in ASP.NET MVC4 project (EF)?

rapidzone

New Member
I want to use different SQL Server 2012 databases into an ASP.NET MVC4 project. Some databases already designed and filled by data, one database will be designed during site development. Every databases has \[code\]Id\[/code\] columns that links to entities from others databases (without foreign keys). I know how to link this databases into NHibernate, but I want to do this project under ADO.NET Entity Framework.[*]Can I link 3-5 SQL Server databases located on one server? [*]How to define connection string(s) for this databases? [*]How to specify tables->db's relationship by code?
 
Back
Top