IRelatedEnd.Add 方法

定义

重载

Add(IEntityWithRelationships)

将对象添加到相关端。

Add(Object)

将对象添加到相关端。

Add(IEntityWithRelationships)

将对象添加到相关端。

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

参数

entity
IEntityWithRelationships

添加到集合的对象。 实体必须实现 IEntityWithRelationships

适用于

Add(Object)

将对象添加到相关端。

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

参数

entity
Object

添加到集合的对象。

适用于