C# Class Signum.Engine.CodeGeneration.LogicCodeGenerator

Show file Open project: signumsoftware/framework

Public Properties

Property Type Description
CurrentSchema Schema
SolutionFolder string
SolutionName string

Public Methods

Method Description
GenerateLogicFromEntities ( ) : void

Protected Methods

Method Description
CandidateTypes ( ) : List
GetExpressionName ( ExpressionInfo ei ) : string
GetExpressions ( Type toType ) : List
GetFileName ( Module t ) : string
GetModules ( ) : IEnumerable
GetNamespace ( Module mod ) : string
GetOperationsSymbols ( Type type ) : IEnumerable
GetProjectFolder ( ) : string
GetQueryProperties ( Type type ) : IEnumerable
GetRegisterExpression ( ExpressionInfo ei ) : string
GetSolutionInfo ( string &solutionFolder, string &solutionName ) : void
GetUsingNamespaces ( Module mod, List expressions ) : List
GetVariableName ( Type type ) : string
IsSave ( IOperationSymbolContainer oper ) : bool
IsSimpleValueType ( Type type ) : bool
ShouldWriteExpression ( ExpressionInfo ei ) : bool
ShouldWriteSimpleQuery ( Type type ) : bool
WriteConstructFrom ( IOperationSymbolContainer oper ) : string
WriteConstructFromMany ( IOperationSymbolContainer oper ) : string
WriteConstructSimple ( IOperationSymbolContainer oper ) : string
WriteDeleteOperation ( IOperationSymbolContainer oper ) : string
WriteExecuteOperation ( IOperationSymbolContainer oper ) : string
WriteExpressionMethod ( ExpressionInfo info ) : string
WriteFile ( Module mod ) : string
WriteInclude ( Type type ) : string
WriteLogicClass ( Module mod, List expressions ) : string
WriteOperation ( IOperationSymbolContainer oper ) : string
WriteOperations ( Type type ) : string
WriteQuery ( Type type ) : string
WriteStartMethod ( Module mod, List expressions ) : string

Private Methods

Method Description
GetOperationType ( IOperationSymbolContainer oper ) : OperationType
ShouldWriteSimpleOperations ( IOperationSymbolContainer oper ) : bool
WriteQueryConstructor ( Type type, string v ) : string

Method Details

CandidateTypes() protected method

protected CandidateTypes ( ) : List
return List

GenerateLogicFromEntities() public method

public GenerateLogicFromEntities ( ) : void
return void

GetExpressionName() protected method

protected GetExpressionName ( ExpressionInfo ei ) : string
ei ExpressionInfo
return string

GetExpressions() protected method

protected GetExpressions ( Type toType ) : List
toType System.Type
return List

GetFileName() protected method

protected GetFileName ( Module t ) : string
t Module
return string

GetModules() protected method

protected GetModules ( ) : IEnumerable
return IEnumerable

GetNamespace() protected method

protected GetNamespace ( Module mod ) : string
mod Module
return string

GetOperationsSymbols() protected method

protected GetOperationsSymbols ( Type type ) : IEnumerable
type System.Type
return IEnumerable

GetProjectFolder() protected method

protected GetProjectFolder ( ) : string
return string

GetQueryProperties() protected method

protected GetQueryProperties ( Type type ) : IEnumerable
type System.Type
return IEnumerable

GetRegisterExpression() protected method

protected GetRegisterExpression ( ExpressionInfo ei ) : string
ei ExpressionInfo
return string

GetSolutionInfo() protected method

protected GetSolutionInfo ( string &solutionFolder, string &solutionName ) : void
solutionFolder string
solutionName string
return void

GetUsingNamespaces() protected method

protected GetUsingNamespaces ( Module mod, List expressions ) : List
mod Module
expressions List
return List

GetVariableName() protected method

protected GetVariableName ( Type type ) : string
type System.Type
return string

IsSave() protected method

protected IsSave ( IOperationSymbolContainer oper ) : bool
oper IOperationSymbolContainer
return bool

IsSimpleValueType() protected method

protected IsSimpleValueType ( Type type ) : bool
type System.Type
return bool

ShouldWriteExpression() protected method

protected ShouldWriteExpression ( ExpressionInfo ei ) : bool
ei ExpressionInfo
return bool

ShouldWriteSimpleQuery() protected method

protected ShouldWriteSimpleQuery ( Type type ) : bool
type System.Type
return bool

WriteConstructFrom() protected method

protected WriteConstructFrom ( IOperationSymbolContainer oper ) : string
oper IOperationSymbolContainer
return string

WriteConstructFromMany() protected method

protected WriteConstructFromMany ( IOperationSymbolContainer oper ) : string
oper IOperationSymbolContainer
return string

WriteConstructSimple() protected method

protected WriteConstructSimple ( IOperationSymbolContainer oper ) : string
oper IOperationSymbolContainer
return string

WriteDeleteOperation() protected method

protected WriteDeleteOperation ( IOperationSymbolContainer oper ) : string
oper IOperationSymbolContainer
return string

WriteExecuteOperation() protected method

protected WriteExecuteOperation ( IOperationSymbolContainer oper ) : string
oper IOperationSymbolContainer
return string

WriteExpressionMethod() protected method

protected WriteExpressionMethod ( ExpressionInfo info ) : string
info ExpressionInfo
return string

WriteFile() protected method

protected WriteFile ( Module mod ) : string
mod Module
return string

WriteInclude() protected method

protected WriteInclude ( Type type ) : string
type System.Type
return string

WriteLogicClass() protected method

protected WriteLogicClass ( Module mod, List expressions ) : string
mod Module
expressions List
return string

WriteOperation() protected method

protected WriteOperation ( IOperationSymbolContainer oper ) : string
oper IOperationSymbolContainer
return string

WriteOperations() protected method

protected WriteOperations ( Type type ) : string
type System.Type
return string

WriteQuery() protected method

protected WriteQuery ( Type type ) : string
type System.Type
return string

WriteStartMethod() protected method

protected WriteStartMethod ( Module mod, List expressions ) : string
mod Module
expressions List
return string

Property Details

CurrentSchema public property

public Schema CurrentSchema
return Schema

SolutionFolder public property

public string SolutionFolder
return string

SolutionName public property

public string SolutionName
return string