EntityObject Classe

Definizione

Classe di base per i tipi di entità generati dagli strumenti entity data model.

public ref class EntityObject abstract : System::Data::Objects::DataClasses::StructuralObject, System::Data::Objects::DataClasses::IEntityWithChangeTracker, System::Data::Objects::DataClasses::IEntityWithKey, System::Data::Objects::DataClasses::IEntityWithRelationships
[System.Runtime.Serialization.DataContract(IsReference=true)]
[System.Serializable]
public abstract class EntityObject : System.Data.Objects.DataClasses.StructuralObject, System.Data.Objects.DataClasses.IEntityWithChangeTracker, System.Data.Objects.DataClasses.IEntityWithKey, System.Data.Objects.DataClasses.IEntityWithRelationships
[<System.Runtime.Serialization.DataContract(IsReference=true)>]
[<System.Serializable>]
type EntityObject = class
    inherit StructuralObject
    interface IEntityWithKey
    interface IEntityWithChangeTracker
    interface IEntityWithRelationships
Public MustInherit Class EntityObject
Inherits StructuralObject
Implements IEntityWithChangeTracker, IEntityWithKey, IEntityWithRelationships
Ereditarietà
EntityObject
Attributi
Implementazioni

Costruttori

Nome Descrizione
EntityObject()

Inizializza una nuova istanza della classe EntityObject.

Proprietà

Nome Descrizione
EntityKey

Ottiene o imposta la chiave per questo oggetto.

EntityState

Ottiene lo stato dell'entità dell'oggetto.

Metodi

Nome Descrizione
Equals(Object)

Determina se l'oggetto specificato è uguale all'oggetto corrente.

(Ereditato da Object)
GetHashCode()

Funge da funzione hash predefinita.

(Ereditato da Object)
GetType()

Ottiene il Type dell'istanza corrente.

(Ereditato da Object)
GetValidValue<T>(T, String, Boolean, Boolean)

Restituisce un tipo complesso per la proprietà specificata.

(Ereditato da StructuralObject)
MemberwiseClone()

Crea una copia superficiale del Objectcorrente.

(Ereditato da Object)
OnPropertyChanged(String)

Genera l'evento PropertyChanged.

(Ereditato da StructuralObject)
OnPropertyChanging(String)

Genera l'evento PropertyChanging.

(Ereditato da StructuralObject)
ReportPropertyChanged(String)

Notifica al rilevamento modifiche che una proprietà è stata modificata.

ReportPropertyChanging(String)

Notifica al rilevamento modifiche che una modifica della proprietà è in sospeso.

SetValidValue<T>(T, T, String)

Imposta un oggetto complesso per la proprietà specificata.

(Ereditato da StructuralObject)
ToString()

Restituisce una stringa che rappresenta l'oggetto corrente.

(Ereditato da Object)

Eventi

Nome Descrizione
PropertyChanged

Si verifica quando un valore della proprietà è stato modificato.

(Ereditato da StructuralObject)
PropertyChanging

Si verifica quando una modifica del valore della proprietà è in sospeso.

(Ereditato da StructuralObject)

Implementazioni dell'interfaccia esplicita

Nome Descrizione
IEntityWithChangeTracker.SetChangeTracker(IEntityChangeTracker)

Specifica l'istanza di utilizzata per segnalare le modifiche alle IEntityChangeTracker proprietà.

IEntityWithRelationships.RelationshipManager

Ottiene la gestione relazioni utilizzata da questo oggetto.

Si applica a

Vedi anche