Breyta

Deila með


EntityObject Class

Definition

Base class for entity types that are generated by the Entity Data Model tools.

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
Inheritance
EntityObject
Attributes
Implements

Constructors

EntityObject()

Initializes a new instance of the EntityObject class.

Properties

EntityKey

Gets or sets the key for this object.

EntityState

Gets the entity state of the object.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetValidValue<T>(T, String, Boolean, Boolean)

Returns a complex type for the specified property.

(Inherited from StructuralObject)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnPropertyChanged(String)

Raises the PropertyChanged event.

(Inherited from StructuralObject)
OnPropertyChanging(String)

Raises the PropertyChanging event.

(Inherited from StructuralObject)
ReportPropertyChanged(String)

Notifies the change tracker that a property has changed.

ReportPropertyChanging(String)

Notifies the change tracker that a property change is pending.

SetValidValue<T>(T, T, String)

Sets a complex object for the specified property.

(Inherited from StructuralObject)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Events

PropertyChanged

Occurs when a property value has changed.

(Inherited from StructuralObject)
PropertyChanging

Occurs when a property value change is a pending.

(Inherited from StructuralObject)

Explicit Interface Implementations

IEntityWithChangeTracker.SetChangeTracker(IEntityChangeTracker)

Specifies the instance of IEntityChangeTracker that is used to report property changes.

IEntityWithRelationships.RelationshipManager

Gets the relationship manager used by this object.

Applies to

See also