C# Class Signum.Entities.DynamicQuery.QueryUtils

Mostra file Open project: signumsoftware/framework Class Usage Examples

Public Properties

Property Type Description
MergeEntityColumns Func

Public Methods

Method Description
CanColumn ( QueryToken token ) : string
CanFilter ( QueryToken token ) : string
CanOrder ( QueryToken token ) : string
GetCompareExpression ( FilterOperation operation, Expression left, Expression right, bool inMemory = false ) : Expression
GetFilterOperations ( FilterType filtertype ) : List
GetFilterType ( Type type ) : FilterType
GetKey ( object queryName ) : string
GetNiceName ( object queryName ) : string
GetNiceName ( object queryName, CultureInfo ci ) : string
IsColumnToken ( string tokenString ) : bool
IsList ( this fo ) : bool
Parse ( string tokenString, QueryDescription qd, SubTokensOptions options ) : QueryToken
SubToken ( QueryToken token, QueryDescription qd, SubTokensOptions options, string key ) : QueryToken
SubTokens ( this token, QueryDescription qd, SubTokensOptions options ) : List
TryGetFilterType ( Type type ) : FilterType?

Private Methods

Method Description
AggregateTokens ( QueryToken token, QueryDescription qd ) : IEnumerable
BuildLite ( this expression ) : Expression
BuildLite ( this type ) : Type
BuildLiteNulifyUnwrapPrimaryKey ( this expression, PropertyRoute routes ) : Expression
BuildLiteNulifyUnwrapPrimaryKey ( this type, PropertyRoute routes ) : Type
ExtractEntity ( this expression, bool idAndToStr ) : Expression
Fix ( Expression left, bool inMemory ) : Expression
SubTokenBasic ( QueryToken token, QueryDescription qd, SubTokensOptions options, string key ) : QueryToken
SubTokensBasic ( QueryToken token, QueryDescription qd, SubTokensOptions options ) : List
UnwrapPrimaryKey ( Expression expression, PropertyRoute routes ) : Expression
UnwrapPrimaryKey ( Type type, PropertyRoute routes ) : Type

Method Details

CanColumn() public static method

public static CanColumn ( QueryToken token ) : string
token QueryToken
return string

CanFilter() public static method

public static CanFilter ( QueryToken token ) : string
token QueryToken
return string

CanOrder() public static method

public static CanOrder ( QueryToken token ) : string
token QueryToken
return string

GetCompareExpression() public static method

public static GetCompareExpression ( FilterOperation operation, Expression left, Expression right, bool inMemory = false ) : Expression
operation FilterOperation
left System.Linq.Expressions.Expression
right System.Linq.Expressions.Expression
inMemory bool
return System.Linq.Expressions.Expression

GetFilterOperations() public static method

public static GetFilterOperations ( FilterType filtertype ) : List
filtertype FilterType
return List

GetFilterType() public static method

public static GetFilterType ( Type type ) : FilterType
type System.Type
return FilterType

GetKey() public static method

public static GetKey ( object queryName ) : string
queryName object
return string

GetNiceName() public static method

public static GetNiceName ( object queryName ) : string
queryName object
return string

GetNiceName() public static method

public static GetNiceName ( object queryName, CultureInfo ci ) : string
queryName object
ci System.Globalization.CultureInfo
return string

IsColumnToken() public static method

public static IsColumnToken ( string tokenString ) : bool
tokenString string
return bool

IsList() public static method

public static IsList ( this fo ) : bool
fo this
return bool

Parse() public static method

public static Parse ( string tokenString, QueryDescription qd, SubTokensOptions options ) : QueryToken
tokenString string
qd QueryDescription
options SubTokensOptions
return QueryToken

SubToken() public static method

public static SubToken ( QueryToken token, QueryDescription qd, SubTokensOptions options, string key ) : QueryToken
token QueryToken
qd QueryDescription
options SubTokensOptions
key string
return QueryToken

SubTokens() public static method

public static SubTokens ( this token, QueryDescription qd, SubTokensOptions options ) : List
token this
qd QueryDescription
options SubTokensOptions
return List

TryGetFilterType() public static method

public static TryGetFilterType ( Type type ) : FilterType?
type System.Type
return FilterType?

Property Details

MergeEntityColumns public_oe static_oe property

public static Func MergeEntityColumns
return Func