Share via


ComplexObject Class

Definition

This is the interface that represent the minimum interface required to be an entity in ADO.NET.

[System.Runtime.Serialization.DataContract(IsReference=true)]
[System.Serializable]
public abstract class ComplexObject : System.Data.Entity.Core.Objects.DataClasses.StructuralObject
type ComplexObject = class
    inherit StructuralObject
Public MustInherit Class ComplexObject
Inherits StructuralObject
Inheritance
ComplexObject
Attributes

Constructors

ComplexObject()

Fields

EntityKeyPropertyName

Public constant name used for change tracking Providing this definition allows users to use this constant instead of hard-coding the string. This helps to ensure the property name is correct and allows faster comparisons in places where we are looking for this specific string. Users can still use the case-sensitive string directly instead of the constant, it will just be slightly slower on comparison. Including the dash (-) character around the name ensures that this will not conflict with a real data property, because -EntityKey- is not a valid identifier name

(Inherited from StructuralObject)

Methods

GetValidValue<T>(T, String, Boolean, Boolean)

Returns a complex type for the specified property.

(Inherited from StructuralObject)
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 of a complex object has changed.

ReportPropertyChanging(String)

Notifies the change tracker that a property change is pending on a complex object.

SetValidValue<T>(T, T, String)

Sets a complex object for the specified property.

(Inherited from StructuralObject)

Events

PropertyChanged

Notification that a property has been changed.

(Inherited from StructuralObject)
PropertyChanging

Notification that a property is about to be changed.

(Inherited from StructuralObject)

Applies to