Allows the application to specify properties and mapping documents to be used when creating
a ISessionFactory.
Namespace: NHibernate.CfgAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
[SerializableAttribute] public class Configuration : ISerializable |
Visual Basic |
---|
<SerializableAttribute> _ Public Class Configuration _ Implements ISerializable |
Visual C++ |
---|
[SerializableAttribute] public ref class Configuration : ISerializable |
Remarks
Usually an application will create a single Configuration, build a single instance of ISessionFactory, and then instantiate ISession objects in threads servicing client requests.
The Configuration is meant only as an initialization-time object. ISessionFactory is immutable and does not retain any association back to the Configuration