IRelatedEnd.Attach 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 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
正在附加的物件。