Прочетете на английски Редактиране

Споделяне чрез


RelatedEnd.ValidateOwnerForAttach Method

Definition

Ensures that the object to which the related end belongs supports an attach operation.

C#
protected internal void ValidateOwnerForAttach();

Exceptions

When the source object is not attached to the ObjectContext, was returned from a NoTracking query, or is not in a Modified or Unchanged state.

Remarks

Object Services calls the ValidateOwnerForAttach method before executing an attach operation to ensure that the operation will succeed.

Applies to

Продукт Версии
.NET Framework 3.5