-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Dennis C. Mitchell edited this page Aug 17, 2018
·
7 revisions
The EFBase package provides a SqlRepo for Entity Framework targeting SQL Server 2016+. The SqlRepo class includes methods for creating, reading (by PK), updating, and deleting -- both synchronously and asynchronously. The following classes are included:
- SqlRepo -- which provides the base repository class.
- TestingTransaction -- which wraps a DbTransaction and provides the ability for a single transaction to be attached to multiple contexts and which can be configured to automatically roll back upon disposal.
- SequenceResetter-- which provides a method for resetting all sequences in a database.
- SqlExecutor -- which provides methods for executing multiple SQL statement blocks separated by GO.
- UnitTestBase -- which provides a base class that allows Xunit tests that use SqlRepo and TestingTransaction to automatically roll back after each test case.
- IntegrationTestBase -- which which is like the UnitTestBase class, but which does not autorollback on Dispose().