CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Core.FieldManager.FieldData< T > Class Template Reference

Contains a field value and related metadata. More...

Inheritance diagram for Csla.Core.FieldManager.FieldData< T >:
Csla.Core.FieldManager.IFieldData< T > Csla.Core.ITrackStatus Csla.Core.INotifyBusy Csla.Core.INotifyUnhandledAsyncException

Public Member Functions

 FieldData ()
 Creates a new instance of the object. More...
 
 FieldData (string name)
 Creates a new instance of the object. More...
 
virtual void MarkClean ()
 Marks the field as unchanged. More...
 

Properties

string Name [get]
 Gets the name of the field. More...
 
virtual T Value [getset]
 Gets or sets the value of the field. More...
 
virtual bool IsSelfDirty [get]
 Gets a value indicating whether the field has been changed. More...
 
virtual bool IsDirty [get]
 Gets a value indicating whether the field has been changed. More...
 
virtual bool IsValid [get]
 Gets a value indicating whether this field is considered valid. More...
 
bool IsBusy [get]
 Gets a value indicating whether this object or any of its child objects are busy. More...
 
EventHandler< ErrorEventArgsUnhandledAsyncException
 Event indicating that an exception occurred on a background thread. More...
 
- Properties inherited from Csla.Core.FieldManager.IFieldData< T >
string Name [get]
 Gets the name of the field. More...
 
object Value [getset]
 Gets or sets the field value. More...
 
new T Value [getset]
 Gets or sets the field value. More...
 
- Properties inherited from Csla.Core.ITrackStatus
bool IsValid [get]
 Returns true if the object and its child objects are currently valid, false if the object or any of its child objects have broken rules or are otherwise invalid. More...
 
bool IsSelfValid [get]
 Returns true if the object is currently valid, false if the object has broken rules or is otherwise invalid. More...
 
bool IsDirty [get]
 Returns true if this object's data, or any of its fields or child objects data, has been changed. More...
 
bool IsSelfDirty [get]
 Returns true if this object's data has been changed. More...
 
bool IsDeleted [get]
 Returns true if this object is marked for deletion. More...
 
bool IsNew [get]
 Returns true if this is a new object, false if it is a pre-existing object. More...
 
bool IsSavable [get]
 Returns true if this object is both dirty and valid. More...
 
bool IsChild [get]
 Returns true if this is a child object, false if it is a root object. More...
 
- Properties inherited from Csla.Core.INotifyBusy
bool IsBusy [get]
 Gets a value indicating whether the object, or any of the object's child objects, are busy running an asynchronous operation. More...
 
bool IsSelfBusy [get]
 Gets a value indicating whether the object is busy running an asynchronous operation. More...
 

Additional Inherited Members

- Events inherited from Csla.Core.INotifyBusy
BusyChangedEventHandler BusyChanged
 Event raised when the object's busy status changes. More...
 
- Events inherited from Csla.Core.INotifyUnhandledAsyncException
EventHandler< ErrorEventArgsUnhandledAsyncException
 Event indicating that an exception occurred during an asynchronous operation. More...
 

Detailed Description

Contains a field value and related metadata.

Template Parameters
TType of field value contained.

Definition at line 20 of file FieldData.cs.

Constructor & Destructor Documentation

◆ FieldData() [1/2]

Creates a new instance of the object.

Definition at line 31 of file FieldData.cs.

◆ FieldData() [2/2]

Creates a new instance of the object.

Parameters
nameName of the field.

Definition at line 39 of file FieldData.cs.

Member Function Documentation

◆ MarkClean()

virtual void Csla.Core.FieldManager.FieldData< T >.MarkClean ( )
virtual

Marks the field as unchanged.

Implements Csla.Core.FieldManager.IFieldData< T >.

Definition at line 134 of file FieldData.cs.

Property Documentation

◆ IsBusy

bool Csla.Core.FieldManager.FieldData< T >.IsBusy
get

Gets a value indicating whether this object or any of its child objects are busy.

Definition at line 188 of file FieldData.cs.

◆ IsDirty

virtual bool Csla.Core.FieldManager.FieldData< T >.IsDirty
get

Gets a value indicating whether the field has been changed.

Definition at line 120 of file FieldData.cs.

◆ IsSelfDirty

virtual bool Csla.Core.FieldManager.FieldData< T >.IsSelfDirty
get

Gets a value indicating whether the field has been changed.

Definition at line 111 of file FieldData.cs.

◆ IsValid

virtual bool Csla.Core.FieldManager.FieldData< T >.IsValid
getprotected

Gets a value indicating whether this field is considered valid.

Definition at line 164 of file FieldData.cs.

◆ Name

string Csla.Core.FieldManager.FieldData< T >.Name
get

Gets the name of the field.

Definition at line 47 of file FieldData.cs.

◆ UnhandledAsyncException

EventHandler<ErrorEventArgs> Csla.Core.FieldManager.FieldData< T >.UnhandledAsyncException
addremove

Event indicating that an exception occurred on a background thread.

Definition at line 223 of file FieldData.cs.

◆ Value

virtual T Csla.Core.FieldManager.FieldData< T >.Value
getset

Gets or sets the value of the field.

Definition at line 52 of file FieldData.cs.