Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/23/10 14:17:20 (14 years ago)
Author:
cneumuel
Message:

replaced transaction- and context management from Spring-advice by custom context management (see ContextFactory) (#1098)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.LINQDataAccess/3.3/VarBinaryStream.cs

    r3578 r4092  
    150150    dataColumn, string keyColumn, Guid key) {
    151151      _connection = connection;
    152       _transaction = (SqlTransaction) ContextFactory.Context.Transaction;
     152      _transaction = (SqlTransaction) ContextFactory.Instance.CurrentContext.Transaction;
    153153      /*
    154154      if (_connection.State == ConnectionState.Closed) {
     
    263263      if (_connection != null) {
    264264        _connection.Close();
    265         ContextFactory.Context.Dispose();
    266         ContextFactory.Context = null;
     265        ContextFactory.Instance.CurrentContext.Dispose();
     266        ContextFactory.Instance.RemoveContext();
    267267        Logger.Info("Connection and Context disposed and set null");
    268268      }
Note: See TracChangeset for help on using the changeset viewer.