EntityObject Classe

Définition

Classe de base pour les types d’entités générés par les outils 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
Héritage
EntityObject
Attributs
Implémente

Constructeurs

Nom Description
EntityObject()

Initialise une nouvelle instance de la classe EntityObject.

Propriétés

Nom Description
EntityKey

Obtient ou définit la clé de cet objet.

EntityState

Obtient l’état d’entité de l’objet.

Méthodes

Nom Description
Equals(Object)

Détermine si l’objet spécifié est égal à l’objet actuel.

(Hérité de Object)
GetHashCode()

Sert de fonction de hachage par défaut.

(Hérité de Object)
GetType()

Obtient la Type de l’instance actuelle.

(Hérité de Object)
GetValidValue<T>(T, String, Boolean, Boolean)

Retourne un type complexe pour la propriété spécifiée.

(Hérité de StructuralObject)
MemberwiseClone()

Crée une copie superficielle du Objectactuel.

(Hérité de Object)
OnPropertyChanged(String)

Déclenche l’événement PropertyChanged.

(Hérité de StructuralObject)
OnPropertyChanging(String)

Déclenche l’événement PropertyChanging.

(Hérité de StructuralObject)
ReportPropertyChanged(String)

Avertit le suivi des modifications qu’une propriété a changé.

ReportPropertyChanging(String)

Avertit le suivi des modifications qu’une modification de propriété est en attente.

SetValidValue<T>(T, T, String)

Définit un objet complexe pour la propriété spécifiée.

(Hérité de StructuralObject)
ToString()

Retourne une chaîne qui représente l’objet actuel.

(Hérité de Object)

Événements

Nom Description
PropertyChanged

Se produit lorsqu’une valeur de propriété a changé.

(Hérité de StructuralObject)
PropertyChanging

Se produit lorsqu’une modification de valeur de propriété est en attente.

(Hérité de StructuralObject)

Implémentations d’interfaces explicites

Nom Description
IEntityWithChangeTracker.SetChangeTracker(IEntityChangeTracker)

Spécifie l’instance utilisée pour signaler les modifications de IEntityChangeTracker propriété.

IEntityWithRelationships.RelationshipManager

Obtient le gestionnaire de relations utilisé par cet objet.

S’applique à

Voir aussi