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.SingleCriteria< B, C > Class Template Reference

A single-value criteria used to retrieve business objects that only require one criteria value. More...

Inheritance diagram for Csla.SingleCriteria< B, C >:
Csla.SingleCriteria< C > Csla.CriteriaBase< SingleCriteria< C > >

Public Member Functions

 SingleCriteria (C value)
 Creates an instance of the type, initializing it with the criteria value. More...
 
 SingleCriteria (C value)
 Creates an instance of the type, initializing it with the criteria value. More...
 
- Public Member Functions inherited from Csla.SingleCriteria< C >
 SingleCriteria (C value)
 Creates an instance of the type, initializing it with the criteria value. More...
 
 SingleCriteria (C value)
 Creates an instance of the type, initializing it with the criteria value. More...
 

Protected Member Functions

 SingleCriteria ()
 Creates an instance of the type. More...
 
 SingleCriteria (Type type, C value)
 Creates an instance of the type. More...
 
override void OnGetState (SerializationInfo info, StateMode mode)
 Override this method to insert your field values into the MobileFormatter serialzation stream. More...
 
override void OnSetState (SerializationInfo info, StateMode mode)
 Override this method to retrieve your field values from the MobileFormatter serialzation stream. More...
 
 SingleCriteria ()
 Creates an instance of the type. More...
 
- Protected Member Functions inherited from Csla.SingleCriteria< C >
 SingleCriteria ()
 Creates an instance of the type. More...
 
 SingleCriteria (Type type, C value)
 Creates an instance of the type. More...
 
 SingleCriteria ()
 Creates an instance of the type. More...
 
override void OnGetState (SerializationInfo info, StateMode mode)
 Override this method to insert your field values into the MobileFormatter serialzation stream. More...
 
override void OnSetState (SerializationInfo info, StateMode mode)
 Override this method to retrieve your field values from the MobileFormatter serialzation stream. More...
 
- Protected Member Functions inherited from Csla.CriteriaBase< SingleCriteria< C > >
 CriteriaBase ()
 Initializes empty CriteriaBase. More...
 

Properties

Value [get]
 Gets the criteria value provided by the caller. More...
 
- Properties inherited from Csla.SingleCriteria< C >
Value [get]
 Gets the criteria value provided by the caller. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from Csla.CriteriaBase< SingleCriteria< C > >
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...
 

Detailed Description

A single-value criteria used to retrieve business objects that only require one criteria value.

Template Parameters
CType of the criteria value.
Template Parameters
BType of business object to retrieve.
CType of the criteria value.

Definition at line 127 of file SingleCriteria.cs.

Constructor & Destructor Documentation

◆ SingleCriteria() [1/5]

Csla.SingleCriteria< B, C >.SingleCriteria ( value)

Creates an instance of the type, initializing it with the criteria value.

Parameters
valueThe criteria value.

Definition at line 45 of file SingleCriteria.cs.

◆ SingleCriteria() [2/5]

Csla.SingleCriteria< B, C >.SingleCriteria ( )
protected

Creates an instance of the type.

This is for use by the MobileFormatter, you must provide a criteria value parameter.

Definition at line 60 of file SingleCriteria.cs.

◆ SingleCriteria() [3/5]

Csla.SingleCriteria< B, C >.SingleCriteria ( Type  type,
value 
)
protected

Creates an instance of the type.

This is for use by the MobileFormatter, you must provide a criteria value parameter.

Parameters
typeBusiness object type.
valueCriteria value.

Definition at line 72 of file SingleCriteria.cs.

◆ SingleCriteria() [4/5]

Csla.SingleCriteria< B, C >.SingleCriteria ( value)

Creates an instance of the type, initializing it with the criteria value.

Parameters
valueThe criteria value.

Definition at line 137 of file SingleCriteria.cs.

◆ SingleCriteria() [5/5]

Csla.SingleCriteria< B, C >.SingleCriteria ( )
protected

Creates an instance of the type.

This is for use by the MobileFormatter, you must provide a criteria value parameter.

Definition at line 151 of file SingleCriteria.cs.

Member Function Documentation

◆ OnGetState()

override void Csla.SingleCriteria< B, C >.OnGetState ( SerializationInfo  info,
StateMode  mode 
)
protected

Override this method to insert your field values into the MobileFormatter serialzation stream.

Parameters
infoObject containing the data to serialize.
modeThe StateMode indicating why this method was invoked.

Definition at line 89 of file SingleCriteria.cs.

◆ OnSetState()

override void Csla.SingleCriteria< B, C >.OnSetState ( SerializationInfo  info,
StateMode  mode 
)
protected

Override this method to retrieve your field values from the MobileFormatter serialzation stream.

Parameters
infoObject containing the data to serialize.
modeThe StateMode indicating why this method was invoked.

Definition at line 105 of file SingleCriteria.cs.

Property Documentation

◆ Value

C Csla.SingleCriteria< B, C >.Value
get

Gets the criteria value provided by the caller.

Definition at line 32 of file SingleCriteria.cs.