-
Alternatively, you can have the ISessionFactory open connections for you. The ISessionFactory must be provided with ADO.NET connection properties in one of the following ways: Pass an instance of IDictionary < string, string > (property name, property value) to Configuration .SetProperties( IDictionary...
-
An ISessionFactory may open an ISession a user-provided ADO.NET connection. This design choice frees the application to obtain ADO.NET connections wherever it pleases: IDbConnection conn = myApp.GetOpenConnection(); ISession session = sessions.OpenSession(conn); // do some data access work The application...