C# Class Rock.Reporting.EntityField

Helper class for saving information about each property and attribute of an entity Note: the type of a field or attribute does not neccesarily determine the ui rendered for filtering. For example, a Single-Select attribute will use a multi-select ui so that user can filter on one or more values. The FilterFieldType property determines the UI rendered for filtering and not the type of field. Entity Property Types and their renderd filter field type string -> TEXT bool or bool? -> SINGLE_SELECT date or date? -> DATE int or int? Defined Values -> MULTI_SELECT otherwise -> INTEGER enumeration -> MULTI_SELECT Attribute types and their rendered filter field type MULTI_SELECT -> MULTI_SELECT SINGLE_SELECT -> MULTI_SELECT BOOLEAN -> SINGLE_SELECT (True or False) DATE -> DATE INTEGER -> INTEGER TEXT -> TEXT
Afficher le fichier Open project: SparkDevNetwork/Rock Class Usage Examples

Méthodes publiques

Méthode Description
EntityField ( string name, FieldKind fieldKind, PropertyInfo propertyInfo ) : System

Initializes a new instance of the EntityField class.

EntityField ( string name, FieldKind fieldKind, Type propertyType, System.Guid attributeGuid, Rock.Web.Cache.FieldTypeCache fieldType ) : System

Initializes a new instance of the EntityField class.

FormattedFilterDescription ( List filterValues ) : string

Formatteds the filter.

GetBoundFieldType ( ) : System.Web.UI.WebControls.BoundField

Gets the type of the bound field.

ToString ( ) : string

Returns a System.String that represents this instance.

Private Methods

Méthode Description
EntityField ( string name, FieldKind fieldKind, Type propertyType, PropertyInfo propertyInfo, System.Guid attributeGuid ) : System

Initializes a new instance of the EntityField class.

Method Details

EntityField() public méthode

Initializes a new instance of the EntityField class.
public EntityField ( string name, FieldKind fieldKind, PropertyInfo propertyInfo ) : System
name string The name.
fieldKind FieldKind Kind of the field.
propertyInfo PropertyInfo The property information.
Résultat System

EntityField() public méthode

Initializes a new instance of the EntityField class.
public EntityField ( string name, FieldKind fieldKind, Type propertyType, System.Guid attributeGuid, Rock.Web.Cache.FieldTypeCache fieldType ) : System
name string The name.
fieldKind FieldKind Kind of the field.
propertyType System.Type Type of the property.
attributeGuid System.Guid The attribute unique identifier.
fieldType Rock.Web.Cache.FieldTypeCache Type of the field.
Résultat System

FormattedFilterDescription() public méthode

Formatteds the filter.
public FormattedFilterDescription ( List filterValues ) : string
filterValues List The filter values.
Résultat string

GetBoundFieldType() public méthode

Gets the type of the bound field.
public GetBoundFieldType ( ) : System.Web.UI.WebControls.BoundField
Résultat System.Web.UI.WebControls.BoundField

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( ) : string
Résultat string