title: map existing database to model that creates another database
body: <p>I am using CodeFirst approach, EF 4.0. I have model of tables that application uses. However I want to use another database as encyclopedia, meaning this database has a lot of data and these data is interconnected by foreign key. I have declared DbSet of my external datebase. However when model is generated, all entities that has to exist within my external DB, are placed as empty tables in my main DB. So here is the question. How can I specify for some entities to use external DB while for other use main DB?</p>