C# 클래스 Rock.Utility.ExpressionHelper

Expresssion Helper Methods
파일 보기 프로젝트 열기: NewSpring/Rock

공개 메소드들

메소드 설명
ConvertValueToPropertyType ( string value, Type propertyType, bool isNullableType ) : object

Converts the type of the value to property.

GetAttributeExpression ( IService serviceInstance, System.Linq.Expressions.ParameterExpression parameterExpression, EntityField entityField, List values ) : Expression

Builds an expression for an attribute field

PropertyFilterExpression ( List filterValues, Expression parameterExpression, string propertyName, Type propertyType ) : Expression

Gets a filter expression for an entity property value.

메소드 상세

ConvertValueToPropertyType() 공개 정적인 메소드

Converts the type of the value to property.
public static ConvertValueToPropertyType ( string value, Type propertyType, bool isNullableType ) : object
value string The value.
propertyType System.Type Type of the property.
isNullableType bool if set to true [is nullable type].
리턴 object

GetAttributeExpression() 공개 정적인 메소드

Builds an expression for an attribute field
public static GetAttributeExpression ( IService serviceInstance, System.Linq.Expressions.ParameterExpression parameterExpression, EntityField entityField, List values ) : Expression
serviceInstance IService The service instance.
parameterExpression System.Linq.Expressions.ParameterExpression The parameter expression.
entityField Rock.Reporting.EntityField The property.
values List The values.
리턴 System.Linq.Expressions.Expression

PropertyFilterExpression() 공개 정적인 메소드

Gets a filter expression for an entity property value.
public static PropertyFilterExpression ( List filterValues, Expression parameterExpression, string propertyName, Type propertyType ) : Expression
filterValues List The filter values.
parameterExpression System.Linq.Expressions.Expression The parameter expression.
propertyName string Name of the property.
propertyType System.Type Type of the property.
리턴 System.Linq.Expressions.Expression