ALinq(V2.2) 双主键关联 Bug(已修正)

这个 Bug 已经修正,但尚未发布,急需用的可以和我联系。

 

Is possible to create association EntitySet with multiple primary keys?

See the example:

Order

IdCompany

PK

IdOrder

PK

Number

 

Sum

 

OrderDetail

 

IdCompany

FK

IdOrder

FK

IdDetail

PK

Qtde

 

PriceUnit

 

Sum

 

I did search on google in linq to sql references and not found something about.

I tried do the code:

[Association(Name = "ORDER_DETAILS", Storage = "_Details", ThisKey = "IdCompany,IdOrder", OtherKey = "IdCompany,IdOrder")]

Can you help me? (I have a license)

你可能感兴趣的:(LINQ)