dbml name attribute of the Type element is already used by another type. code example
Example: dbml name attribute of the Type element is already used by another type.
Delete your designer.cs
Right click the dbml file in solution explorer and select open with.
Choose XML Editor.
When you save the file within visual studio,
it automatically generates a new designer.cs file.