Adds an Instance of the SessionFactory to the local "cache".
Namespace: NHibernate.ImplAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public static void AddInstance( string uid, string name, ISessionFactory instance, IDictionary<string, string> properties ) |
Visual Basic |
---|
Public Shared Sub AddInstance ( _ uid As String, _ name As String, _ instance As ISessionFactory, _ properties As IDictionary(Of String, String) _ ) |
Visual C++ |
---|
public: static void AddInstance( String^ uid, String^ name, ISessionFactory^ instance, IDictionary<String^, String^>^ properties ) |
Parameters
- uid
- Type: System..::..String
The identifier of the ISessionFactory.
- name
- Type: System..::..String
The name of the ISessionFactory.
- instance
- Type: NHibernate..::..ISessionFactory
The ISessionFactory.
- properties
- Type: System.Collections.Generic..::..IDictionary<(Of <(<'String, String>)>)>
The configured properties for the ISessionFactory.