共用方式為


IRelatedEnd.Attach 方法

定義

多載

Attach(IEntityWithRelationships)

定義兩個所附加物件之間的關聯性。

Attach(Object)

定義兩個所附加物件之間的關聯性。

Attach(IEntityWithRelationships)

定義兩個所附加物件之間的關聯性。

public void Attach(System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships entity);
abstract member Attach : System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships -> unit
Public Sub Attach (entity As IEntityWithRelationships)

參數

entity
IEntityWithRelationships

正在附加的物件。 實體必須實作 IEntityWithRelationships

適用於

Attach(Object)

定義兩個所附加物件之間的關聯性。

public void Attach(object entity);
abstract member Attach : obj -> unit
Public Sub Attach (entity As Object)

參數

entity
Object

正在附加的物件。

適用於