InvalidOperationException sequence contains more than one element even when only one element
- by user310256
I have three tables, tblCompany table, tblParts table and a link table between them tblLinkCompanyParts. Since tblLinkCompanyParts is a link table so the columns that it has are LinkCompanyPartID(primary key), CompanyID from tblCompany table and PartID from tblParts as foreign keys.
I have tied them up in the dbml file. In code if I write…