-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathExampleTransaction.cs
More file actions
56 lines (53 loc) · 2.36 KB
/
Copy pathExampleTransaction.cs
File metadata and controls
56 lines (53 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using RapidField.SolidInstruments.DataAccess.EntityFramework;
using System;
using System.Data;
namespace RapidField.SolidInstruments.Example.DatabaseModel
{
/// <summary>
/// Represents a prototypical, in-memory database transaction.
/// </summary>
public sealed class ExampleTransaction : EntityFrameworkTransaction<ExampleContext>
{
/// <summary>
/// Initializes a new instance of the <see cref="ExampleTransaction" /> class.
/// </summary>
/// <param name="context">
/// The database session for the transaction.
/// </param>
/// <exception cref="ArgumentException">
/// <paramref name="context" /> has outstanding changes tracked against it.
/// </exception>
/// <exception cref="ArgumentNullException">
/// <paramref name="context" /> is <see langword="null" />.
/// </exception>
public ExampleTransaction(ExampleContext context)
: base(context)
{
return;
}
/// <summary>
/// Initializes a new instance of the <see cref="ExampleTransaction" /> class.
/// </summary>
/// <param name="context">
/// The database session for the transaction.
/// </param>
/// <param name="isolationLevel">
/// The isolation level for the transaction, or <see cref="IsolationLevel.Unspecified" /> to use the database default. The
/// default value is <see cref="IsolationLevel.Unspecified" />.
/// </param>
/// <exception cref="ArgumentException">
/// <paramref name="context" /> has outstanding changes tracked against it.
/// </exception>
/// <exception cref="ArgumentNullException">
/// <paramref name="context" /> is <see langword="null" />.
/// </exception>
public ExampleTransaction(ExampleContext context, IsolationLevel isolationLevel)
: base(context, isolationLevel)
{
return;
}
}
}