C# Class Raven.Database.Linq.DynamicViewCompiler

Takes two query expressions as strings, and compile them. Along the way we apply some minimal transformations, the end result is an instance of AbstractViewGenerator, representing the map/reduce functions
ファイルを表示 Open project: nhsevidence/ravendb Class Usage Examples

Public Methods

Method Description
DynamicViewCompiler ( string name, IndexDefinition indexDefinition, OrderedPartCollection extensions, string basePath, InMemoryRavenConfiguration configuration ) : System
DynamicViewCompiler ( string name, IndexDefinition indexDefinition, string basePath ) : System
GenerateInstance ( ) : AbstractViewGenerator

Private Methods

Method Description
AddAdditionalInformation ( ConstructorDeclaration ctor ) : void
AddDocumentIdFieldToLambdaIfCreatingNewObject ( LambdaExpression lambdaExpression ) : void
AddEntityNameFilteringIfNeeded ( VariableDeclaration variableDeclaration, string &entityName ) : void
AddInformation ( ConstructorDeclaration ctor, HashSet fieldNames, string methodToCall ) : void
HandleMapFunction ( ConstructorDeclaration ctor, string map ) : void
HandleReduceDefintion ( ConstructorDeclaration ctor ) : void
HandleTransformResults ( ConstructorDeclaration ctor ) : void
TransformMapDefinitionFromLinqMethodSyntax ( string query, string &entityName ) : VariableDeclaration
TransformMapDefinitionFromLinqQuerySyntax ( string query, string &entityName ) : VariableDeclaration
TransformQueryToClass ( ) : void
ValidateMapReduceFields ( List mapFields ) : void

Method Details

DynamicViewCompiler() public method

public DynamicViewCompiler ( string name, IndexDefinition indexDefinition, OrderedPartCollection extensions, string basePath, InMemoryRavenConfiguration configuration ) : System
name string
indexDefinition IndexDefinition
extensions OrderedPartCollection
basePath string
configuration InMemoryRavenConfiguration
return System

DynamicViewCompiler() public method

public DynamicViewCompiler ( string name, IndexDefinition indexDefinition, string basePath ) : System
name string
indexDefinition IndexDefinition
basePath string
return System

GenerateInstance() public method

public GenerateInstance ( ) : AbstractViewGenerator
return AbstractViewGenerator