OK, I encountered the same error when adding another LINQ to SQL.dbml.
A more specific reason is that you cannot have 2 separate .DBML in the same namespace that reference the same table and column.
Unlike datasets, in which you can have two separate datasets ( Dataset1.xsd and Dataset2.xsd ) with the same table and the same columns, and not in Linq.
DataClass1.dbml with table MyTable with column myColumn and DataClass2.dbml with table also name MyTable with column myColumn will fail because myColumn is defined in both designer.cs files in the same namespace.
My workaround: I renamed ' DataClass2.dbml MyTable to MyTable_2 and myColumn to myColumn_2 .
Then I cursed Microsoft, deleted DataClass2.dbml and integrated the 3rd table that I need into DataClass1.dbml , as well as other tables (to avoid this problem). DataClass1.dbml now contains about 40 tables, which now leads to the fact that the DataClass1.designer.cs file has more than 20,000 lines of code with automatic generation.
Lovely, eh.
source share