Method | Description | |
---|---|---|
AuthorizedRoleCustomization ( IClassMapper |
||
BuildConfiguration ( ) : NHibernate.Cfg.Configuration |
Builds a NHibernate.Cfg.Configuration by adding properties, default assemblies and generating class mappings for unmapped types.
|
|
BuildSessionFactory ( ) : ISessionFactory |
Builds a configuration and returns a new NHibernate.ISessionFactory
|
|
ConfigurationBuilder ( IDefinitionProvider definitionProviders, N2.Persistence.NH.ClassMappingGenerator generator, IWebContext webContext, N2.Persistence.NH.ConfigurationBuilderParticipator participators, |
Creates a new instance of the ConfigurationBuilder.
|
|
ContentDetailCustomization ( IClassMapper |
||
ContentItemCustomization ( IClassMapper |
||
ContentVersionCustomization ( IClassMapper |
||
DetailCollectionCustomization ( IClassMapper |
Method | Description | |
---|---|---|
AddAssemblies ( NHibernate cfg ) : void |
Adds default assemblies to NHibernate configuration.
|
|
AddDefaultMapping ( NHibernate cfg ) : void | ||
AddMapping ( NHibernate cfg, string name ) : void |
Adds mappings to the configuration.
|
|
AddMappings ( NHibernate cfg ) : void | ||
AddProperties ( NHibernate cfg ) : void |
Adds properties to NHibernate configuration.
|
|
GenerateMappings ( NHibernate cfg ) : void |
Generates subclasses nhibernate xml configuration as an alternative to NHibernate definition file and adds them to the configuration.
|
|
GetStreamFromName ( string name ) : Stream | ||
IsMapped ( NHibernate cfg, |
Checks whether a type's mapping is added to the NHibernate configuration.
|
|
SetupFlavourProperties ( |
Configures the properties of each supported database flavor. You need to extend this method if you want to add your own database flavor.
|
|
SetupMappings ( |
||
SetupProperties ( |
Sets properties configuration dictionary based on configuration in the database section.
|
Method | Description | |
---|---|---|
AddedMappingFromHbmResource ( ItemDefinition definition, NHibernate cfg ) : bool | ||
DetectFlavor ( |
||
FormatMapping ( string mappingXml ) : string | ||
InvokeParticipators ( NHibernate cfg ) : void | ||
SetupCacheProperties ( |
protected AddAssemblies ( NHibernate cfg ) : void | ||
cfg | NHibernate | |
return | void |
protected AddDefaultMapping ( NHibernate cfg ) : void | ||
cfg | NHibernate | |
return | void |
protected AddMapping ( NHibernate cfg, string name ) : void | ||
cfg | NHibernate | The configuration to add the mappings to. |
name | string | The resource name of the embedded resource. |
return | void |
protected AddMappings ( NHibernate cfg ) : void | ||
cfg | NHibernate | |
return | void |
protected AddProperties ( NHibernate cfg ) : void | ||
cfg | NHibernate | |
return | void |
public AuthorizedRoleCustomization ( IClassMapper |
||
ca | IClassMapper |
|
return | void |
public BuildConfiguration ( ) : NHibernate.Cfg.Configuration | ||
return | NHibernate.Cfg.Configuration |
public BuildSessionFactory ( ) : ISessionFactory | ||
return | ISessionFactory |
public ConfigurationBuilder ( IDefinitionProvider definitionProviders, N2.Persistence.NH.ClassMappingGenerator generator, IWebContext webContext, N2.Persistence.NH.ConfigurationBuilderParticipator participators, |
||
definitionProviders | IDefinitionProvider | |
generator | N2.Persistence.NH.ClassMappingGenerator | |
webContext | IWebContext | |
participators | N2.Persistence.NH.ConfigurationBuilderParticipator | |
config | ||
connectionStrings | ||
return | System |
public ContentDetailCustomization ( IClassMapper |
||
ca | IClassMapper |
|
return | void |
public ContentItemCustomization ( IClassMapper |
||
ca | IClassMapper |
|
return | void |
public ContentVersionCustomization ( IClassMapper |
||
ca | IClassMapper |
|
return | void |
public DetailCollectionCustomization ( IClassMapper |
||
ca | IClassMapper |
|
return | void |
protected GenerateMappings ( NHibernate cfg ) : void | ||
cfg | NHibernate | The nhibernate configuration to build. |
return | void |
protected GetStreamFromName ( string name ) : Stream | ||
name | string | |
return | Stream |
protected IsMapped ( NHibernate cfg, |
||
cfg | NHibernate | The nhibernate configuration to investigate. |
type | The type to look for | |
return | bool |
protected SetupFlavourProperties ( |
||
config | ||
connectionStrings | ||
return | DatabaseFlavour |
protected SetupMappings ( |
||
config | ||
return | void |
protected SetupProperties ( |
||
config | The database section configuration. | |
connectionStrings | Connection strings from configuration | |
return | void |