The Configuration type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | Configuration |
Create a new Configuration object.
|
Methods
Name | Description | |
---|---|---|
![]() | AddAssembly | Overloaded. |
![]() | AddAuxiliaryDatabaseObject | |
![]() | AddClass |
Read a mapping from an embedded resource, using a convention.
|
![]() | AddDirectory |
Read all mapping documents from a directory tree. Assume that any
file named *.hbm.xml is a mapping document.
|
![]() | AddDocument | Overloaded. |
![]() | AddFile | Overloaded. |
![]() | AddFilterDefinition | |
![]() | AddInputStream | Overloaded. |
![]() | AddProperties |
Adds an IDictionary of configuration properties. The
Key is the name of the Property and the Value is the String
value of the Property.
|
![]() | AddResource |
Adds the mappings in the resource of the assembly.
|
![]() | AddSqlFunction | |
![]() | AddUrl | Overloaded. |
![]() | AddXml | Overloaded. |
![]() | AddXmlFile |
Read mappings from a particular XML file.
|
![]() | AddXmlReader | Overloaded. |
![]() | AddXmlString |
Read mappings from a String.
|
![]() | BuildSessionFactory |
Instantiate a new ISessionFactory, using the properties and mappings in this
configuration. The ISessionFactory will be immutable, so changes made to the
configuration after building the ISessionFactory will not affect it.
|
![]() | Configure | Overloaded. |
![]() | CreateMappings |
Create a new Mappings to add classes and collection
mappings to.
|
![]() | CreateXmlNamespaceManager | |
![]() | DoConfigure | |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GenerateDropSchemaScript |
Generate DDL for droping tables
|
![]() | GenerateSchemaCreationScript |
Generate DDL for creating tables
|
![]() | GetClassMapping |
Get the mapping for a particular class
|
![]() | GetCollectionMapping |
Get the mapping for a particular collection role
|
![]() | GetHashCode | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
![]() | GetProperty |
Gets the value of the configuration property.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | LoadMappingDocument |
Load and validate the mappings in the XmlTextReader against
the nhibernate-mapping-2.2 schema, without adding them to the configuration.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SetCacheConcurrencyStrategy | Overloaded. |
![]() | SetDefaultAssembly |
Set the default assembly to use for the mappings added to the configuration
afterwards.
|
![]() | SetDefaultNamespace |
Set the default namespace to use for the mappings added to the configuration
afterwards.
|
![]() | SetInterceptor |
Sets the default interceptor for use by all sessions.
|
![]() | SetNamingStrategy |
Set a custom naming strategy
|
![]() | SetProperties |
Specify a completely new set of properties
|
![]() | SetProperty |
Sets the value of the configuration property.
|
![]() | ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
![]() ![]() | CfgSchemaXMLNS |
The XML Namespace for the nhibernate-configuration
|
![]() ![]() | MappingSchemaXMLNS |
The XML Namespace for the nhibernate-mapping
|
Properties
Name | Description | |
---|---|---|
![]() | ClassMappings |
The class mappings
|
![]() | CollectionMappings |
The collection mappings
|
![]() | FilterDefinitions | |
![]() | Imports |
Get the query language imports
|
![]() | Interceptor |
Gets or sets the IInterceptor to use.
|
![]() | NamedQueries |
The named queries
|
![]() | NamedSQLQueries |
The named SQL queries
|
![]() | NamingStrategy |
Naming strategy for tables and columns
|
![]() | Properties |
Gets or sets the IDictionary that contains the configuration
properties and their values.
|
![]() | SqlFunctions | |
![]() | SqlResultSetMappings |