ComplexObject Class
Base class for complex types.
System.Data.Objects.DataClasses::StructuralObject
System.Data.Objects.DataClasses::ComplexObject
Assembly: System.Data.Entity (in System.Data.Entity.dll)
The ComplexObject type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (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 | Raises the PropertyChanged event. (Inherited from StructuralObject.) |
![]() | OnPropertyChanging | Raises the PropertyChanging event. (Inherited from StructuralObject.) |
![]() | ReportPropertyChanged | Notifies the change tracker that a property of a complex object has changed. (Overrides StructuralObject::ReportPropertyChanged(String).) |
![]() | ReportPropertyChanging | Notifies the change tracker that a property change is pending on a complex object. (Overrides StructuralObject::ReportPropertyChanging(String).) |
![]() | 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.) |
| Name | Description | |
|---|---|---|
![]() | PropertyChanged | Occurs when a property value has changed. (Inherited from StructuralObject.) |
![]() | PropertyChanging | Occurs when a property value change is a pending. (Inherited from StructuralObject.) |
ComplexObject implements the basic functionality for complex types. For more information, see Complex Type Objects (Entity Framework).
When implementing custom data classes with a conceptual model, we recommend that your data classes that represent complex types inherit from ComplexObject. For more information, see Customizing Objects (Entity Framework).
A complex type can be a property of an entity type or of another complex type.
Complex types are returned by non-scalar properties of entity types. This enables scalar properties to be organized within entities. Like entities, complex types consist of scalar properties or other complex type properties. A complex type cannot be used without an associated entity type. Because complex types do not have keys, complex type objects cannot be managed without an associated entity type. For more information, see Complex Type Objects (Entity Framework).
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
