The documentation comes from the Markdown files in the source code, so is always up-to-date but available only in English. Enjoy!
Reads all the System.Type
in the main entities assembly that inherit from Entity
and are non-abstract, and, after grouping by module name, generates logic files that include:
sb.Include<T>()
instructions to include each entity types in the database schema.QueryLogic.Queries.Register(key, query)
instructions to register the default query for each type.new Graph<T>.Execute(key) {}.Register()
instructions to register the operations declared for the type.Additionally, the module is also able to declare expression queries to simplify navigating relationships backwards in the business logic, or also register them in QueryLogic.Queries
to let end users do the same in the SearchControl
.
This tree shows the call hierarchy or the methods, all protected
and virtual
so you can override them.
GenerateLogicFromEntities
GetModules
using (CandiateTypes
and CodeGenerator.GetModules
)
WriteFile
GetExpressions(type)
ShouldWriteExpression
GetUsingNamespaces
GetNamespace
WriteLogicClass
WriteExpressionMethod
WriteStartMethod
WriteInclude
WriteOperations
GetOperationsSymbols(type)
WriteOperation
WriteExecuteOperation
WriteDeleteOperation
WriteConstructFrom
WriteConstructFromMany
WriteConstructSimple
© Signum Software. All Rights Reserved.
Powered by Signum Framework