StructuralObject Class

Definition

This class contains the common methods need for an date object.

[System.Runtime.Serialization.DataContract(IsReference=true)]
[System.Serializable]
public abstract class StructuralObject : System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging
type StructuralObject = class
    interface INotifyPropertyChanging
    interface INotifyPropertyChanged
Public MustInherit Class StructuralObject
Implements INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
StructuralObject
Derived
Attributes
Implements

Constructors

StructuralObject()

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

Methods

BinaryEquals(Byte[], Byte[])

Determines whether the specified byte arrays contain identical values.

DefaultDateTimeValue()

Returns the minimum date time value supported by the data source.

GetValidValue(Byte[])

Returns a copy of the current byte value.

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

Returns a complex type for the specified property.

OnPropertyChanged(String)

Raises the PropertyChanged event.

OnPropertyChanging(String)

Raises the PropertyChanging event.

ReportPropertyChanged(String)

Raises an event that is used to report that a property change has occurred.

ReportPropertyChanging(String)

Raises an event that is used to report that a property change is pending.

SetValidValue(Boolean)

Makes sure the Boolean value being set for a property is valid.

SetValidValue(Boolean, String)

Makes sure the Boolean value being set for a property is valid.

SetValidValue(Byte)

Makes sure the Byte value being set for a property is valid.

SetValidValue(Byte, String)

Makes sure the Byte value being set for a property is valid.

SetValidValue(Byte[], Boolean)

Makes sure the System.Byte[] value being set for a property is valid.

SetValidValue(Byte[], Boolean, String)

Makes sure the System.Byte[] value being set for a property is valid.

SetValidValue(DateTime)

Makes sure the DateTime value being set for a property is valid.

SetValidValue(DateTime, String)

Makes sure the DateTime value being set for a property is valid.

SetValidValue(DateTimeOffset)

Makes sure the DateTimeOffset value being set for a property is valid.

SetValidValue(DateTimeOffset, String)

Makes sure the DateTimeOffset value being set for a property is valid.

SetValidValue(DbGeography, Boolean)

Validates that the property is not null, and throws if it is.

SetValidValue(DbGeography, Boolean, String)

Validates that the property is not null, and throws if it is.

SetValidValue(DbGeometry, Boolean)

Validates that the property is not null, and throws if it is.

SetValidValue(DbGeometry, Boolean, String)

Validates that the property is not null, and throws if it is.

SetValidValue(Decimal)

Makes sure the Decimal value being set for a property is valid.

SetValidValue(Decimal, String)

Makes sure the Decimal value being set for a property is valid.

SetValidValue(Double)

Makes sure the Double value being set for a property is valid.

SetValidValue(Double, String)

Makes sure the Double value being set for a property is valid.

SetValidValue(Guid)

Makes sure the Guid value being set for a property is valid.

SetValidValue(Guid, String)

Makes sure the Guid value being set for a property is valid.

SetValidValue(Int16)

Makes sure the Int16 value being set for a property is valid.

SetValidValue(Int16, String)

Makes sure the Int16 value being set for a property is valid.

SetValidValue(Int32)

Makes sure the Int32 value being set for a property is valid.

SetValidValue(Int32, String)

Makes sure the Int32 value being set for a property is valid.

SetValidValue(Int64)

Makes sure the Int64 value being set for a property is valid.

SetValidValue(Int64, String)

Makes sure the Int64 value being set for a property is valid.

SetValidValue(Nullable<Boolean>)

Makes sure the Boolean value being set for a property is valid.

SetValidValue(Nullable<Boolean>, String)

Makes sure the Boolean value being set for a property is valid.

SetValidValue(Nullable<Byte>)

Makes sure the Byte value being set for a property is valid.

SetValidValue(Nullable<Byte>, String)

Makes sure the Byte value being set for a property is valid.

SetValidValue(Nullable<DateTime>)

Makes sure the DateTime value being set for a property is valid.

SetValidValue(Nullable<DateTime>, String)

Makes sure the DateTime value being set for a property is valid.

SetValidValue(Nullable<DateTimeOffset>)

Makes sure the DateTimeOffset value being set for a property is valid.

SetValidValue(Nullable<DateTimeOffset>, String)

Makes sure the DateTimeOffset value being set for a property is valid.

SetValidValue(Nullable<Decimal>)

Makes sure the Decimal value being set for a property is valid.

SetValidValue(Nullable<Decimal>, String)

Makes sure the Decimal value being set for a property is valid.

SetValidValue(Nullable<Double>)

Makes sure the Double value being set for a property is valid.

SetValidValue(Nullable<Double>, String)

Makes sure the Double value being set for a property is valid.

SetValidValue(Nullable<Guid>)

Makes sure the Guid value being set for a property is valid.

SetValidValue(Nullable<Guid>, String)

Makes sure the Guid value being set for a property is valid.

SetValidValue(Nullable<Int16>)

Makes sure the Int16 value being set for a property is valid.

SetValidValue(Nullable<Int16>, String)

Makes sure the Int16 value being set for a property is valid.

SetValidValue(Nullable<Int32>)

Makes sure the Int32 value being set for a property is valid.

SetValidValue(Nullable<Int32>, String)

Makes sure the Int32 value being set for a property is valid.

SetValidValue(Nullable<Int64>)

Makes sure the Int64 value being set for a property is valid.

SetValidValue(Nullable<Int64>, String)

Makes sure the Int64 value being set for a property is valid.

SetValidValue(Nullable<SByte>)

Makes sure the SByte value being set for a property is valid.

SetValidValue(Nullable<SByte>, String)

Makes sure the SByte value being set for a property is valid.

SetValidValue(Nullable<Single>)

Makes sure the Single value being set for a property is valid.

SetValidValue(Nullable<Single>, String)

Makes sure the Single value being set for a property is valid.

SetValidValue(Nullable<TimeSpan>)

Makes sure the TimeSpan value being set for a property is valid.

SetValidValue(Nullable<TimeSpan>, String)

Makes sure the TimeSpan value being set for a property is valid.

SetValidValue(Nullable<UInt16>)

Makes sure the UInt16 value being set for a property is valid.

SetValidValue(Nullable<UInt16>, String)

Makes sure the UInt16 value being set for a property is valid.

SetValidValue(Nullable<UInt32>)

Makes sure the UInt32 value being set for a property is valid.

SetValidValue(Nullable<UInt32>, String)

Makes sure the UInt32 value being set for a property is valid.

SetValidValue(Nullable<UInt64>)

Makes sure the UInt64 value being set for a property is valid.

SetValidValue(Nullable<UInt64>, String)

Makes sure the UInt64 value being set for a property is valid.

SetValidValue(SByte)

Makes sure the SByte value being set for a property is valid.

SetValidValue(SByte, String)

Makes sure the SByte value being set for a property is valid.

SetValidValue(Single)

Makes sure the Single value being set for a property is valid.

SetValidValue(Single, String)

Makes sure the Single value being set for a property is valid.

SetValidValue(String, Boolean)

Validates that the property is not null, and throws if it is.

SetValidValue(String, Boolean, String)

Validates that the property is not null, and throws if it is.

SetValidValue(TimeSpan)

Makes sure the TimeSpan value being set for a property is valid.

SetValidValue(TimeSpan, String)

Makes sure the TimeSpan value being set for a property is valid.

SetValidValue(UInt16)

Makes sure the UInt16 value being set for a property is valid.

SetValidValue(UInt16, String)

Makes sure the UInt16 value being set for a property is valid.

SetValidValue(UInt32)

Makes sure the UInt32 value being set for a property is valid.

SetValidValue(UInt32, String)

Makes sure the UInt32 value being set for a property is valid.

SetValidValue(UInt64)

Makes sure the UInt64 value being set for a property is valid.

SetValidValue(UInt64, String)

Makes sure the UInt64 value being set for a property is valid.

SetValidValue<T>(T, T, String)

Sets a complex object for the specified property.

VerifyComplexObjectIsNotNull<TComplex>(TComplex, String)

Verifies that a complex object is not null.

Events

PropertyChanged

Notification that a property has been changed.

PropertyChanging

Notification that a property is about to be changed.

Applies to