This topic has not yet been rated - Rate this topic

StructuralObject Class

Provides support for code generation in the form of helper methods that are used to set field values for properties.

System.Object
  System.Data.Objects.DataClasses.StructuralObject
    System.Data.Objects.DataClasses.ComplexObject
    System.Data.Objects.DataClasses.EntityObject

Namespace:  System.Data.Objects.DataClasses
Assembly:  System.Data.Entity (in System.Data.Entity.dll)
[SerializableAttribute]
[DataContractAttribute(IsReference = true)]
public abstract class StructuralObject : INotifyPropertyChanging, 
	INotifyPropertyChanged

The StructuralObject type exposes the following members.

  Name Description
Protected method StructuralObject Initializes a new instance of the StructuralObject class.
Top
  Name Description
Protected method Static member BinaryEquals Determines whether the specified byte arrays contain identical values.
Protected method Static member DefaultDateTimeValue Returns the minimum date time value supported by the data source.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Static member GetValidValue(Byte[]) Returns a copy of the current byte value.
Protected method GetValidValue<T>(T, String, Boolean, Boolean) Returns a complex type for the specified property.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnPropertyChanged Raises the PropertyChanged event.
Protected method OnPropertyChanging Raises the PropertyChanging event.
Protected method ReportPropertyChanged When overridden in a derived class, raises an event that is used to report that a property change has occurred.
Protected method ReportPropertyChanging When overridden in a derived class, raises an event that is used to report that a property change is pending.
Protected method Static member SetValidValue(Boolean) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<Boolean>) This method is reserved for future use.
Protected method Static member SetValidValue(Byte) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<Byte>) This method is reserved for future use.
Protected method Static member SetValidValue(DateTime) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<DateTime>) This method is reserved for future use.
Protected method Static member SetValidValue(DateTimeOffset) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<DateTimeOffset>) This method is reserved for future use.
Protected method Static member SetValidValue(Decimal) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<Decimal>) This method is reserved for future use.
Protected method Static member SetValidValue(Double) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<Double>) This method is reserved for future use.
Protected method Static member SetValidValue(Guid) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<Guid>) This method is reserved for future use.
Protected method Static member SetValidValue(Int16) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<Int16>) This method is reserved for future use.
Protected method Static member SetValidValue(Int32) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<Int32>) This method is reserved for future use.
Protected method Static member SetValidValue(Int64) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<Int64>) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<SByte>) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<Single>) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<TimeSpan>) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<UInt16>) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<UInt32>) This method is reserved for future use.
Protected method Static member SetValidValue(Nullable<UInt64>) This method is reserved for future use.
Protected method Static member SetValidValue(SByte) This method is reserved for future use.
Protected method Static member SetValidValue(Single) This method is reserved for future use.
Protected method Static member SetValidValue(TimeSpan) This method is reserved for future use.
Protected method Static member SetValidValue(UInt16) This method is reserved for future use.
Protected method Static member SetValidValue(UInt32) This method is reserved for future use.
Protected method Static member SetValidValue(UInt64) This method is reserved for future use.
Protected method Static member SetValidValue(Byte[], Boolean) Returns a copy of the supplied byte array, or null if supported.
Protected method Static member SetValidValue(String, Boolean) Returns a copy of the supplied string, or null if supported.
Protected method SetValidValue<T>(T, T, String) Sets a complex object for the specified property.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method Static member VerifyComplexObjectIsNotNull<TComplex> Verifies that a complex object is not null.
Top
  Name Description
Public event PropertyChanged Occurs when a property value has changed.
Public event PropertyChanging Occurs when a property value change is a pending.
Top
  Name Description
Public field Static member EntityKeyPropertyName This constant name is used for change tracking.
Top

StructuralObject is the base class for both EntityObject types and ComplexObject types.

This class is not intended to be used directly in your code.

.NET Framework

Supported in: 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4

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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ