Condividi tramite


Metodo RelatedEnd.IRelatedEnd.Add (IEntityWithRelationships)

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Aggiunge un'entità all'entità finale correlata. Questo metodo funziona esattamente come Add(object). Viene mantenuto per garantire la compatibilità con le versioni precedenti di IRelatedEnd.

Spazio dei nomi:  System.Data.Entity.Core.Objects.DataClasses
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Sub Add ( _
    entity As IEntityWithRelationships _
) Implements IRelatedEnd.Add
'Utilizzo
Dim instance As RelatedEnd 
Dim entity As IEntityWithRelationships 

CType(instance, IRelatedEnd).Add(entity)
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
void IRelatedEnd.Add(
    IEntityWithRelationships entity
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual void Add(
    IEntityWithRelationships^ entity
) sealed = IRelatedEnd::Add
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract Add : 
        entity:IEntityWithRelationships -> unit 
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override Add : 
        entity:IEntityWithRelationships -> unit
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parametri

Implements

IRelatedEnd.Add(IEntityWithRelationships)

Vedere anche

Riferimento

RelatedEnd Classe

Overload Add

Spazio dei nomi System.Data.Entity.Core.Objects.DataClasses