@@ -68,7 +68,7 @@ public bool IsInActiveTransaction
68
68
{
69
69
if ( transaction != null && transaction . IsActive )
70
70
return true ;
71
- return session . Factory . TransactionFactory . IsInDistributedActiveTransaction ( session ) ;
71
+ return Factory . TransactionFactory . IsInDistributedActiveTransaction ( session ) ;
72
72
}
73
73
}
74
74
@@ -183,7 +183,7 @@ public IDbConnection Disconnect() {
183
183
184
184
private void CloseConnection ( )
185
185
{
186
- session . Factory . ConnectionProvider . CloseConnection ( connection ) ;
186
+ Factory . ConnectionProvider . CloseConnection ( connection ) ;
187
187
connection = null ;
188
188
}
189
189
@@ -193,10 +193,10 @@ public IDbConnection GetConnection()
193
193
{
194
194
if ( ownConnection )
195
195
{
196
- connection = session . Factory . ConnectionProvider . GetConnection ( ) ;
197
- if ( session . Factory . Statistics . IsStatisticsEnabled )
196
+ connection = Factory . ConnectionProvider . GetConnection ( ) ;
197
+ if ( Factory . Statistics . IsStatisticsEnabled )
198
198
{
199
- session . Factory . StatisticsImplementor . Connect ( ) ;
199
+ Factory . StatisticsImplementor . Connect ( ) ;
200
200
}
201
201
}
202
202
else if ( session . IsOpen )
@@ -308,7 +308,7 @@ public void GetObjectData(SerializationInfo info, StreamingContext context)
308
308
309
309
void IDeserializationCallback . OnDeserialization ( object sender )
310
310
{
311
- batcher = session . Factory . Settings . BatcherFactory . CreateBatcher ( this , interceptor ) ;
311
+ batcher = Factory . Settings . BatcherFactory . CreateBatcher ( this , interceptor ) ;
312
312
}
313
313
314
314
#endregion
@@ -331,7 +331,7 @@ public ITransaction Transaction
331
331
{
332
332
if ( transaction == null )
333
333
{
334
- transaction = session . Factory . TransactionFactory . CreateTransaction ( session ) ;
334
+ transaction = Factory . TransactionFactory . CreateTransaction ( session ) ;
335
335
}
336
336
return transaction ;
337
337
}
0 commit comments