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.CriteriaBase< T > Class Template Reference

Base type from which Criteria classes can be derived in a business class. More...

Inheritance diagram for Csla.CriteriaBase< T >:
Csla.Core.ManagedObjectBase Csla.Core.MobileObject Csla.Serialization.Mobile.IMobileObject

Protected Member Functions

 CriteriaBase ()
 Initializes empty CriteriaBase. More...
 
- Protected Member Functions inherited from Csla.Core.ManagedObjectBase
ReadPropertyConvert< F, P > (PropertyInfo< F > propertyInfo)
 Gets a property's value from the list of managed field values, converting the value to an appropriate type. More...
 
ReadProperty< P > (PropertyInfo< P > propertyInfo)
 Gets a property's value as a specified type. More...
 
virtual object ReadProperty (IPropertyInfo propertyInfo)
 Gets a property's value as a specified type. More...
 
void LoadPropertyConvert< P, F > (PropertyInfo< P > propertyInfo, F newValue)
 Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change. More...
 
void LoadProperty< P > (PropertyInfo< P > propertyInfo, P newValue)
 Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change. More...
 
virtual void LoadProperty (IPropertyInfo propertyInfo, object newValue)
 Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change. More...
 
virtual bool LoadPropertyMarkDirty (IPropertyInfo propertyInfo, object newValue)
 Loads the property vith new value and mark field dirty if value is changed. More...
 
void OnPropertyChanged (string propertyName)
 Raises the PropertyChanged event. More...
 
void OnPropertyChanged (IPropertyInfo propertyInfo)
 Raises the PropertyChanged event. More...
 
override void OnGetChildren (SerializationInfo info, MobileFormatter formatter)
 Override this method to manually retrieve child object data from the serializations stream. More...
 
override void OnSetChildren (SerializationInfo info, MobileFormatter formatter)
 Override this method to manually serialize child objects into the serialization stream. More...
 
virtual void OnDeserialized (System.Runtime.Serialization.StreamingContext context)
 This method is called on a newly deserialized object after deserialization is complete. More...
 
- Protected Member Functions inherited from Csla.Core.MobileObject
virtual void OnGetState (SerializationInfo info, StateMode mode)
 Override this method to insert your field values into the MobileFormatter serialzation stream. More...
 
virtual void OnSetState (SerializationInfo info, StateMode mode)
 Override this method to retrieve your field values from the MobileFormatter serialzation stream. More...
 

Static Protected Member Functions

static PropertyInfo< P > RegisterProperty< P > (PropertyInfo< P > info)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, P defaultValue)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName, RelationshipTypes relationship)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, RelationshipTypes relationship)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName, string friendlyName)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName, RelationshipTypes relationship)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName, string friendlyName, P defaultValue)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName, P defaultValue)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName, string friendlyName, P defaultValue, RelationshipTypes relationship)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName, P defaultValue, RelationshipTypes relationship)
 Indicates that the specified property belongs to the business object type. More...
 
- Static Protected Member Functions inherited from Csla.Core.ManagedObjectBase
static PropertyInfo< P > RegisterProperty< P > (Type objectType, PropertyInfo< P > info)
 Indicates that the specified property belongs to the type. More...
 
static PropertyInfo< P > RegisterProperty< T, P > (Expression< Func< T, object > > propertyLambdaExpression)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< T, P > (Expression< Func< T, object > > propertyLambdaExpression, P defaultValue)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< T, P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< T, P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName, P defaultValue)
 Indicates that the specified property belongs to the business object type. More...
 

Additional Inherited Members

- Properties inherited from Csla.Core.ManagedObjectBase
FieldDataManager FieldManager [get]
 Gets a reference to the field mananger for this object. More...
 

Detailed Description

Base type from which Criteria classes can be derived in a business class.

Type Constraints
T :CriteriaBase<T> 

Definition at line 23 of file CriteriaBase.cs.

Constructor & Destructor Documentation

◆ CriteriaBase()

Csla.CriteriaBase< T >.CriteriaBase ( )
protected

Initializes empty CriteriaBase.

The type of business object to be created by the DataPortal MUST be supplied by the subclass.

Definition at line 31 of file CriteriaBase.cs.

Member Function Documentation

◆ RegisterProperty< P >() [1/13]

static PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty< P > ( Expression< Func< T, object > >  propertyLambdaExpression)
staticprotected

Indicates that the specified property belongs to the business object type.

Template Parameters
PType of property
Parameters
propertyLambdaExpressionProperty Expression
Returns

Definition at line 73 of file CriteriaBase.cs.

◆ RegisterProperty< P >() [2/13]

static PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty< P > ( Expression< Func< T, object > >  propertyLambdaExpression,
defaultValue 
)
staticprotected

Indicates that the specified property belongs to the business object type.

Template Parameters
PType of property
Parameters
propertyLambdaExpressionProperty Expression
defaultValueDefault Value for the property
Returns

Definition at line 88 of file CriteriaBase.cs.

◆ RegisterProperty< P >() [3/13]

static PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty< P > ( Expression< Func< T, object > >  propertyLambdaExpression,
RelationshipTypes  relationship 
)
staticprotected

Indicates that the specified property belongs to the business object type.

Template Parameters
PType of property
Parameters
propertyLambdaExpressionProperty Expression
relationshipRelationship with referenced object.
Returns

Definition at line 118 of file CriteriaBase.cs.

◆ RegisterProperty< P >() [4/13]

static PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty< P > ( Expression< Func< T, object > >  propertyLambdaExpression,
string  friendlyName 
)
staticprotected

Indicates that the specified property belongs to the business object type.

Template Parameters
PType of property
Parameters
propertyLambdaExpressionProperty Expression
friendlyNameFriendly description for a property to be used in databinding
Returns

Definition at line 145 of file CriteriaBase.cs.

◆ RegisterProperty< P >() [5/13]

static PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty< P > ( Expression< Func< T, object > >  propertyLambdaExpression,
string  friendlyName,
defaultValue 
)
staticprotected

Indicates that the specified property belongs to the business object type.

Template Parameters
PType of property
Parameters
propertyLambdaExpressionProperty Expression
friendlyNameFriendly description for a property to be used in databinding
defaultValueDefault Value for the property
Returns

Definition at line 192 of file CriteriaBase.cs.

◆ RegisterProperty< P >() [6/13]

static PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty< P > ( Expression< Func< T, object > >  propertyLambdaExpression,
string  friendlyName,
defaultValue,
RelationshipTypes  relationship 
)
staticprotected

Indicates that the specified property belongs to the business object type.

Template Parameters
PType of property
Parameters
propertyLambdaExpressionProperty Expression
friendlyNameFriendly description for a property to be used in databinding
defaultValueDefault Value for the property
relationshipRelationship with referenced object.
Returns

Definition at line 225 of file CriteriaBase.cs.

◆ RegisterProperty< P >() [7/13]

static PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty< P > ( Expression< Func< T, object > >  propertyLambdaExpression,
string  friendlyName,
RelationshipTypes  relationship 
)
staticprotected

Indicates that the specified property belongs to the business object type.

Template Parameters
PType of property
Parameters
propertyLambdaExpressionProperty Expression
friendlyNameFriendly description for a property to be used in databinding
relationshipRelationship with referenced object.
Returns

Definition at line 162 of file CriteriaBase.cs.

◆ RegisterProperty< P >() [8/13]

static PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty< P > ( PropertyInfo< P >  info)
staticprotected

Indicates that the specified property belongs to the business object type.

Template Parameters
PType of property.
Parameters
infoPropertyInfo object for the property.
Returns
The provided IPropertyInfo object.

Definition at line 49 of file CriteriaBase.cs.

◆ RegisterProperty< P >() [9/13]

static PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty< P > ( string  propertyName)
staticprotected

Indicates that the specified property belongs to the business object type.

Template Parameters
PType of property
Parameters
propertyNameProperty name from nameof()
Returns

Definition at line 61 of file CriteriaBase.cs.

◆ RegisterProperty< P >() [10/13]

static PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty< P > ( string  propertyName,
RelationshipTypes  relationship 
)
staticprotected

Indicates that the specified property belongs to the business object type.

Template Parameters
PType of property
Parameters
propertyNameProperty name from nameof()
relationshipRelationship with referenced object.
Returns

Definition at line 104 of file CriteriaBase.cs.

◆ RegisterProperty< P >() [11/13]

static PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty< P > ( string  propertyName,
string  friendlyName 
)
staticprotected

Indicates that the specified property belongs to the business object type.

Template Parameters
PType of property
Parameters
propertyNameProperty name from nameof()
friendlyNameFriendly description for a property to be used in databinding
Returns

Definition at line 132 of file CriteriaBase.cs.

◆ RegisterProperty< P >() [12/13]

static PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty< P > ( string  propertyName,
string  friendlyName,
defaultValue 
)
staticprotected

Indicates that the specified property belongs to the business object type.

Template Parameters
PType of property
Parameters
propertyNameProperty name from nameof()
friendlyNameFriendly description for a property to be used in databinding
defaultValueDefault Value for the property
Returns

Definition at line 178 of file CriteriaBase.cs.

◆ RegisterProperty< P >() [13/13]

static PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty< P > ( string  propertyName,
string  friendlyName,
defaultValue,
RelationshipTypes  relationship 
)
staticprotected

Indicates that the specified property belongs to the business object type.

Template Parameters
PType of property
Parameters
propertyNameProperty name from nameof()
friendlyNameFriendly description for a property to be used in databinding
defaultValueDefault Value for the property
relationshipRelationship with referenced object.
Returns

Definition at line 209 of file CriteriaBase.cs.