CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.CriteriaBase< T > Class Template Referenceabstract

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.Core.IUseApplicationContext Csla.Serialization.Mobile.IMobileObject Csla.Serialization.Mobile.IMobileObjectMetastate

Protected Member Functions

 CriteriaBase ()
 Initializes empty CriteriaBase. The type of business object to be created by the DataPortal MUST be supplied by the subclass.
Protected Member Functions inherited from Csla.Core.ManagedObjectBase
P? ReadPropertyConvert<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] F, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< F > propertyInfo)
 Gets a property's value from the list of managed field values, converting the value to an appropriate type.
P? ReadProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< P > propertyInfo)
 Gets a property's value as a specified type.
virtual ? object ReadProperty (IPropertyInfo propertyInfo)
 Gets a property's value as a specified type.
void LoadPropertyConvert<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] F > (PropertyInfo< P > propertyInfo, F? newValue)
 Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change.
void LoadProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< P > propertyInfo, P? newValue)
 Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change.
virtual void LoadProperty (IPropertyInfo propertyInfo, object? newValue)
 Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change.
virtual bool LoadPropertyMarkDirty (IPropertyInfo propertyInfo, object? newValue)
 Loads the property vith new value and mark field dirty if value is changed.
void OnPropertyChanged (string propertyName)
 Raises the PropertyChanged event.
void OnPropertyChanged (IPropertyInfo propertyInfo)
 Raises the PropertyChanged event.
override void OnGetChildren (SerializationInfo info, MobileFormatter formatter)
 Override this method to manually retrieve child object data from the serializations stream.
override void OnSetChildren (SerializationInfo info, MobileFormatter formatter)
 Override this method to manually serialize child objects into the serialization stream.
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 serialization stream.
virtual void OnSetState (SerializationInfo info, StateMode mode)
 Override this method to retrieve your field values from the MobileFormatter serialization stream.
virtual void OnGetMetastate (BinaryWriter writer)
 Override this method to write field values directly to a binary stream for metastate serialization.
virtual void OnSetMetastate (BinaryReader reader)
 Override this method to read field values directly from a binary stream for metastate deserialization.

Static Protected Member Functions

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

Additional Inherited Members

Properties inherited from Csla.Core.ManagedObjectBase
ApplicationContext ApplicationContext = default! [get]
 Gets the current ApplicationContext.
FieldDataManager FieldManager [get]
 Gets a reference to the field manager for this object.

Detailed Description

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

Type Constraints
T :CriteriaBase<T> 

Member Function Documentation

◆ CriteriaBase()

Csla.CriteriaBase< T >.CriteriaBase ( )
inlineprotected

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

◆ RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P >() [1/11]

PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > ( Expression< Func< T, object > > propertyLambdaExpression)
inlinestaticprotected

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

Template Parameters
PType of property
Parameters
propertyLambdaExpressionProperty Expression
Exceptions
ArgumentNullExceptionpropertyLambdaExpression is null.

◆ RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P >() [2/11]

PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > ( Expression< Func< T, object > > propertyLambdaExpression,
RelationshipTypes relationship )
inlinestaticprotected

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

Template Parameters
PType of property
Parameters
propertyLambdaExpressionProperty Expression
relationshipRelationship with referenced object.
Exceptions
ArgumentNullExceptionpropertyLambdaExpression is null.

◆ RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P >() [3/11]

PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > ( Expression< Func< T, object > > propertyLambdaExpression,
string? friendlyName )
inlinestaticprotected

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
Exceptions
ArgumentNullExceptionpropertyLambdaExpression is null.

◆ RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P >() [4/11]

PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > ( Expression< Func< T, object > > propertyLambdaExpression,
string? friendlyName,
P defaultValue )
inlinestaticprotected

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
Exceptions
ArgumentNullExceptionpropertyLambdaExpression is null.

◆ RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P >() [5/11]

PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > ( Expression< Func< T, object > > propertyLambdaExpression,
string? friendlyName,
P defaultValue,
RelationshipTypes relationship )
inlinestaticprotected

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.
Exceptions
ArgumentNullExceptionpropertyLambdaExpression is null.

◆ RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P >() [6/11]

PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > ( PropertyInfo< P > info)
inlinestaticprotected

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.
Exceptions
ArgumentNullExceptioninfo is null.

◆ RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P >() [7/11]

PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > ( string propertyName)
inlinestaticprotected

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

Template Parameters
PType of property
Parameters
propertyNameProperty name from nameof()
Exceptions
ArgumentNullExceptionpropertyName is null.

◆ RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P >() [8/11]

PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > ( string propertyName,
RelationshipTypes relationship )
inlinestaticprotected

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.
Exceptions
ArgumentNullExceptionpropertyName is null.

◆ RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P >() [9/11]

PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > ( string propertyName,
string? friendlyName )
inlinestaticprotected

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
Exceptions
ArgumentNullExceptionpropertyName is null.

◆ RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P >() [10/11]

PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > ( string propertyName,
string? friendlyName,
P defaultValue )
inlinestaticprotected

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
Exceptions
ArgumentNullExceptionpropertyName is null.

◆ RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P >() [11/11]

PropertyInfo< P > Csla.CriteriaBase< T >.RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > ( string propertyName,
string? friendlyName,
P defaultValue,
RelationshipTypes relationship )
inlinestaticprotected

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.
Exceptions
ArgumentNullExceptionpropertyName is null.

The documentation for this class was generated from the following file: