I have an table called Invoices with a column named Vendor. The Vendor column is a FK reference to a Vendors table with the PK being Id.
My dbml creates the appropriate objects...Invoice and Vendor. However, my Invoice object has both a Vendor property (as a String) and a Vendor1 property (as a Vendor object).
I thought it would have to do with my column name matching the referenced object name but after changing the column to VendorId and recreating all the dbml objects the repeated property was still there. Looks like it is because of the column matching the object...it creates Vendor to hold the String value and then Vendor1 to reference the Vendor object. Why does it not just create the single object reference?
Thanks