Example #1
0
 private static void ReadErmSlice(long orderId, IStore store, out ErmDataLoader.ResolvedOrderSummary orderSummary)
 {
     using (var scope = new TransactionScope(TransactionScopeOption.RequiresNew, new TransactionOptions {
         IsolationLevel = IsolationLevel.ReadCommitted
     }))
         using (var connection = new DataConnection("Erm").AddMappingSchema(Schema.Erm))
         {
             ErmDataLoader.Load(orderId, connection, store, out orderSummary);
         }
 }
Example #2
0
 private void ReadErmSlice(long orderId, IStore store, out ErmDataLoader.ResolvedOrderSummary orderSummary)
 {
     using (var scope = new TransactionScope(TransactionScopeOption.RequiresNew, new TransactionOptions {
         IsolationLevel = IsolationLevel.ReadCommitted
     }))
         using (var connection = _connectionProvider.CreateErmConnection())
         {
             ErmDataLoader.Load(orderId, connection, store, out orderSummary);
         }
 }