RelatedEnd.IRelatedEnd.Attach Metodo

Definizione

Connette un oggetto all'entità finale correlata.

Overload

IRelatedEnd.Attach(IEntityWithRelationships)

Connette un oggetto all'entità finale correlata.

IRelatedEnd.Attach(Object)

Collega un oggetto all'entità finale correlata.

IRelatedEnd.Attach(IEntityWithRelationships)

Connette un oggetto all'entità finale correlata.

 virtual void System.Data.Objects.DataClasses.IRelatedEnd.Attach(System::Data::Objects::DataClasses::IEntityWithRelationships ^ entity) = System::Data::Objects::DataClasses::IRelatedEnd::Attach;
void IRelatedEnd.Attach (System.Data.Objects.DataClasses.IEntityWithRelationships entity);
abstract member System.Data.Objects.DataClasses.IRelatedEnd.Attach : System.Data.Objects.DataClasses.IEntityWithRelationships -> unit
override this.System.Data.Objects.DataClasses.IRelatedEnd.Attach : System.Data.Objects.DataClasses.IEntityWithRelationships -> unit
Sub Attach (entity As IEntityWithRelationships) Implements IRelatedEnd.Attach

Parametri

entity
IEntityWithRelationships

Oggetto da connettere.

Implementazioni

Commenti

Questo membro è un’implementazione esplicita di un membro di interfaccia. Può essere utilizzato solo quando si esegue il cast dell'istanza RelatedEnd a un'interfaccia IRelatedEnd.

Il IRelatedEnd.Attach metodo viene mantenuto solo per la compatibilità con le versioni precedenti di .NET Framework.

Si applica a

IRelatedEnd.Attach(Object)

Collega un oggetto all'entità finale correlata.

 virtual void System.Data.Objects.DataClasses.IRelatedEnd.Attach(System::Object ^ entity) = System::Data::Objects::DataClasses::IRelatedEnd::Attach;
void IRelatedEnd.Attach (object entity);
abstract member System.Data.Objects.DataClasses.IRelatedEnd.Attach : obj -> unit
override this.System.Data.Objects.DataClasses.IRelatedEnd.Attach : obj -> unit
Sub Attach (entity As Object) Implements IRelatedEnd.Attach

Parametri

entity
Object

Istanza di entità da collegare all'entità finale correlata.

Implementazioni

Commenti

Se alla fine correlata sono già associate alcune entità, le entità esistenti verranno unite alla nuova entità. Si presuppone che la nuova entità non sia il set completo di oggetti entità correlati.

L'oggetto entità di origine e tutti gli oggetti entità passati devono trovarsi in uno Unchanged stato o Modified . Gli elementi eliminati sono consentiti solo quando il gestore dello stato sta già monitorando l'istanza della relazione.

Si applica a