Groups > Asp .Net > Data Access and ObjectDataSource Control > Linq to SQL rename an association in a dbml file




Linq to SQL rename an association in a dbml file

Linq to SQL rename an association in a dbml file
Tue, 1 Apr 2008 12:14:12 +0000
Is there a way to rename a association in a dbml file in VS2008?

 When you have 2 foreign keys between 2 tables, you get 2 associoations with the
names: 1 en 2...

 
Example:

Table with name Orders with two fields: ShippingCustomerID and
BillingCustomerID
Table with name Customers

If there are 2 relations between these tables, the one is called:
Orders_Customers1 and the other: Orders_Customers2.

I want to change the names into: ShippingCustomer and BillingCustomer. So it's
clear in my linq query what it's all about.
Post Reply
about | contact