I want to update/insert two identical dbs on different servers. But after I’ve created two .dbml files I’ve got a lot of compilation errors such as:
Error 28 A partial method may not have multiple defining declarations
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t need two different .dbml files. What you need to do is create two different database contexts using the same dbml, but using different connection strings. Also, you should consider transaction options, but that is another question.