Changeset 8326 for branches/OaaS/HeuristicLab.Services.Hive.DataAccess
- Timestamp:
- 07/25/12 14:12:47 (12 years ago)
- 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 52 52 } 53 53 } 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 } 54 64 } 55 65 } -
branches/OaaS/HeuristicLab.Services.Hive.DataAccess/3.3/Settings.settings
r8266 r8326 17 17 <Value Profile="(Default)">HL.Hive</Value> 18 18 </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> 19 22 </Settings> 20 23 </SettingsFile> -
branches/OaaS/HeuristicLab.Services.Hive.DataAccess/3.3/TransactionManager.cs
r8270 r8326 28 28 int n = 10; 29 29 while (n > 0) { 30 //TransactionScope transaction = CreateTransaction(serializable, longRunning);30 TransactionScope transaction = CreateTransaction(serializable, longRunning); 31 31 try { 32 32 call(); 33 //transaction.Complete();33 transaction.Complete(); 34 34 n = 0; 35 35 } … … 40 40 } 41 41 finally { 42 //transaction.Dispose();42 transaction.Dispose(); 43 43 } 44 44 } … … 48 48 int n = 10; 49 49 while (n > 0) { 50 //TransactionScope transaction = CreateTransaction(serializable, longRunning);50 TransactionScope transaction = CreateTransaction(serializable, longRunning); 51 51 try { 52 52 T result = call(); 53 //transaction.Complete();53 transaction.Complete(); 54 54 n = 0; 55 55 return result; … … 61 61 } 62 62 finally { 63 //transaction.Dispose();63 transaction.Dispose(); 64 64 } 65 65 } -
branches/OaaS/HeuristicLab.Services.Hive.DataAccess/3.3/app.config
r6983 r8326 8 8 <connectionStrings> 9 9 <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;" 11 11 providerName="System.Data.SqlClient" /> 12 12 </connectionStrings> … … 19 19 <value>HL.Hive</value> 20 20 </setting> 21 <setting name="HiveConnectionStringName" serializeAs="String"> 22 <value>HeuristicLab.Services.Hive.DataAccess.Settings.HeuristicLab_Hive_LinqConnectionString</value> 23 </setting> 21 24 </HeuristicLab.Services.Hive.DataAccess.Settings> 22 25 </applicationSettings>
Note: See TracChangeset
for help on using the changeset viewer.