Метод | Описание | |
---|---|---|
Configure ( ) : DefaultActiveRecordConfiguration |
Builds a fluent configuration for general ActiveRecord settings.
|
|
CreateSchema ( ) : void |
Generates and executes the creation scripts for the database.
|
|
CreateSchema ( |
Generates and executes the creation scripts for the database using the specified baseClass to know which database it should create the schema for.
|
|
CurrentScope ( ) : ISessionScope |
Gets the current scope
|
|
DisposeCurrentScope ( ) : void |
Disposes the current scope
|
|
DropSchema ( ) : void |
Generates and executes the Drop scripts for the database.
|
|
DropSchema ( |
Generates and executes the Drop scripts for the database using the specified baseClass to know which database it should create the scripts for.
|
|
GenerateCreationScripts ( String fileName ) : void |
Generates the creation scripts for the database If ActiveRecord was configured to access more than one database, a file is going to be generate for each, based on the path and the |
|
GenerateCreationScripts ( |
Generates the creation scripts for the database The baseType is used to identify which database should we act upon.
|
|
GenerateDropScripts ( String fileName ) : void |
Generates the drop scripts for the database saving them to the supplied file name. If ActiveRecord was configured to access more than one database, a file is going to be generate for each, based on the path and the |
|
GenerateDropScripts ( |
Generates the drop scripts for the database saving them to the supplied file name. The baseType is used to identify which database should we act upon.
|
|
Initialize ( ) : void |
Initializes the framework reading the configuration from the
|
|
Initialize ( this source ) : void |
Initialize the mappings using the configuration and checking all the types on the specified Assemblies
|
|
ResetInitialization ( ) : void |
Intended to be used only by test cases
|
|
UpdateSchema ( ) : IList |
Generates and executes the creation scripts for the database.
|
|
UpdateSchema ( Type baseClass ) : IList |
Generates and executes the creation scripts for the database using the specified baseClass to know which database it should create the schema for.
|
Метод | Описание | |
---|---|---|
CheckInitialized ( ) : void | ||
CreateAnotherFile ( string originalFileName, int fileCount ) : string |
Generate a file name based on the original file name specified, using the count to give it some order.
|
|
CreateSchemaExport ( NHibernate.Cfg.Configuration cfg ) : NHibernate.Tool.hbm2ddl.SchemaExport | ||
CreateSchemaUpdate ( NHibernate.Cfg.Configuration cfg ) : NHibernate.Tool.hbm2ddl.SchemaUpdate | ||
CreateSessionFactoryAndRegisterToHolder ( IActiveRecordConfiguration source ) : void |
Initialize the mappings using the configuration and the list of types
|
|
CreateSessionFactoryHolderImplementation ( IActiveRecordConfiguration source ) : ISessionFactoryHolder | ||
RaiseOnConfigurationCreated ( NHibernate.Cfg.Configuration cfg, |
||
RaiseOnHbmMappingCreated ( NHibernate.Cfg.MappingSchema.HbmMapping mapping, |
||
RaiseOnMapperCreated ( NHibernate.Mapping.ByCode.ConventionModelMapper mapper, |
||
RaiseSessionFactoryCreated ( ISessionFactory sf, NHibernate cfg, string name ) : void | ||
RaiseSessionFactoryHolderCreated ( ISessionFactoryHolder holder ) : void |
public static Configure ( ) : DefaultActiveRecordConfiguration | ||
Результат | DefaultActiveRecordConfiguration |
public static CreateSchema ( |
||
baseClass | ||
Результат | void |
public static CurrentScope ( ) : ISessionScope | ||
Результат | ISessionScope |
public static DisposeCurrentScope ( ) : void | ||
Результат | void |
public static DropSchema ( |
||
baseClass | ||
Результат | void |
public static GenerateCreationScripts ( String fileName ) : void | ||
fileName | String | |
Результат | void |
public static GenerateCreationScripts ( |
||
baseType | ||
fileName | String | |
Результат | void |
public static GenerateDropScripts ( String fileName ) : void | ||
fileName | String | |
Результат | void |
public static GenerateDropScripts ( |
||
baseType | ||
fileName | String | |
Результат | void |
public static Initialize ( this source ) : void | ||
source | this | |
Результат | void |
public static ResetInitialization ( ) : void | ||
Результат | void |
public static UpdateSchema ( Type baseClass ) : IList |
||
baseClass | Type | |
Результат | IList |