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); } }
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); } }