asp.net mvc - Problem with two tables with the same name in different MVC models? -


I have got an ASP.NET MVC (VB) project with two models which represent two different databases. Are there. Each model needs to include a table from its database with the same name. For example, model1.dbml should be db1.MyTable in it, and model2.dbml should be db2.MyTable in it.

I can not do this because both models are "partial" public class miteball, and both have "public all new", so you get "many definitions with the same signature" error. / P>

The number of tables between models is the same name (these are different examples of the same product used for different lines of business.) How do you get it? Change names in each Is there a better way?

In the properties of the data reference, Change to separate for each.

Here's a screenshot


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -