Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/25/12 14:12:47 (12 years ago)
Author:
fschoepp
Message:

#1888:

  • Added IConnectionProvider interface + implementation based on jheinzelreiters transaction management
  • Fixed transaction being promoted to dtc; transactions enabled again
  • Changed HiveDao: transactions are managed properly
Location:
branches/OaaS/HeuristicLab.Services.Hive.DataAccess/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Hive.DataAccess/3.3/Settings.Designer.cs

    r8266 r8326  
    5252            }
    5353        }
     54       
     55        [global::System.Configuration.ApplicationScopedSettingAttribute()]
     56        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     57        [global::System.Configuration.DefaultSettingValueAttribute("HeuristicLab.Services.Hive.DataAccess.Settings.HeuristicLab_Hive_LinqConnectionSt" +
     58            "ring")]
     59        public string HiveConnectionStringName {
     60            get {
     61                return ((string)(this["HiveConnectionStringName"]));
     62            }
     63        }
    5464    }
    5565}
  • branches/OaaS/HeuristicLab.Services.Hive.DataAccess/3.3/Settings.settings

    r8266 r8326  
    1717      <Value Profile="(Default)">HL.Hive</Value>
    1818    </Setting>
     19    <Setting Name="HiveConnectionStringName" Type="System.String" Scope="Application">
     20      <Value Profile="(Default)">HeuristicLab.Services.Hive.DataAccess.Settings.HeuristicLab_Hive_LinqConnectionString</Value>
     21    </Setting>
    1922  </Settings>
    2023</SettingsFile>
  • branches/OaaS/HeuristicLab.Services.Hive.DataAccess/3.3/TransactionManager.cs

    r8270 r8326  
    2828      int n = 10;
    2929      while (n > 0) {
    30         //TransactionScope transaction = CreateTransaction(serializable, longRunning);
     30        TransactionScope transaction = CreateTransaction(serializable, longRunning);
    3131        try {
    3232          call();
    33           //transaction.Complete();
     33          transaction.Complete();
    3434          n = 0;
    3535        }
     
    4040        }
    4141        finally {
    42           //transaction.Dispose();
     42          transaction.Dispose();
    4343        }
    4444      }
     
    4848      int n = 10;
    4949      while (n > 0) {
    50         //TransactionScope transaction = CreateTransaction(serializable, longRunning);
     50        TransactionScope transaction = CreateTransaction(serializable, longRunning);
    5151        try {
    5252          T result = call();
    53           //transaction.Complete();
     53          transaction.Complete();
    5454          n = 0;
    5555          return result;
     
    6161        }
    6262        finally {
    63           //transaction.Dispose();
     63          transaction.Dispose();
    6464        }
    6565      }
  • branches/OaaS/HeuristicLab.Services.Hive.DataAccess/3.3/app.config

    r6983 r8326  
    88  <connectionStrings>
    99    <add name="HeuristicLab.Services.Hive.DataAccess.Settings.HeuristicLab_Hive_LinqConnectionString"
    10       connectionString="Data Source=localhost;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True;"
     10        connectionString="Data Source=localhost;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True;"     
    1111      providerName="System.Data.SqlClient" />
    1212  </connectionStrings>
     
    1919        <value>HL.Hive</value>
    2020      </setting>
     21      <setting name="HiveConnectionStringName" serializeAs="String">
     22        <value>HeuristicLab.Services.Hive.DataAccess.Settings.HeuristicLab_Hive_LinqConnectionString</value>
     23      </setting>
    2124    </HeuristicLab.Services.Hive.DataAccess.Settings>
    2225  </applicationSettings>
Note: See TracChangeset for help on using the changeset viewer.