0

FRom MSDN:

The EntityCollection<>.Attach method is used to define a relationship between an object and a related object when both objects are already exist in the object context

Since with non-POCO entities relationships are automatically handled by Object Services, are EntityCollection<>.Attach ( EntityReference<>.Attach ) only relevant with POCOs or are there also situations where they are useful even when using non-POCO entities?

thank you

4

1 回答 1

0

Attach当实体在上下文之外创建时,该函数还用于将实体链接到上下文。

于 2012-11-13T11:03:58.790 回答