EDennis.EFBase 2.3.0

Provides a SqlRepo for Entity Framework targeting SQL Server 2016+.  The SqlRepo class includes various CRUD methods, including methods that take a LINQ expression for filtering records.  SqlRepo supports auto-rollback transactions and sequence resetting for testing scenarios.

Install-Package EDennis.EFBase -Version 2.3.0
dotnet add package EDennis.EFBase --version 2.3.0
<PackageReference Include="EDennis.EFBase" Version="2.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EDennis.EFBase --version 2.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

EFBase Wiki

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:

  1. SqlRepo -- which provides the base repository class.
  2. 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.
  3. SequenceResetter-- which provides a method for resetting all sequences in a database.
  4. SqlExecutor -- which provides methods for executing multiple SQL statement blocks separated by GO.
  5. UnitTestBase -- which provides a base class that allows Xunit tests that use SqlRepo and TestingTransaction to automatically roll back after each test case.
  6. IntegrationTestBase -- which which is like the UnitTestBase class, but which does not autorollback on Dispose().

EFBase Wiki

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:

  1. SqlRepo -- which provides the base repository class.
  2. 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.
  3. SequenceResetter-- which provides a method for resetting all sequences in a database.
  4. SqlExecutor -- which provides methods for executing multiple SQL statement blocks separated by GO.
  5. UnitTestBase -- which provides a base class that allows Xunit tests that use SqlRepo and TestingTransaction to automatically roll back after each test case.
  6. IntegrationTestBase -- which which is like the UnitTestBase class, but which does not autorollback on Dispose().

Release Notes

Updated to SDK version 2.2.0

Version History

Version Downloads Last updated
2.3.0 109 1/16/2019
2.2.0 97 11/8/2018
2.1.9 110 10/22/2018
2.1.8 148 8/17/2018
2.1.7 149 7/30/2018
2.1.6 138 7/30/2018
1.3.4 150 7/23/2018
1.3.3 206 7/12/2018
1.3.2 179 7/12/2018
1.3.1 163 7/11/2018
1.3.0 201 6/6/2018
1.2.8 185 4/30/2018
1.2.7 194 4/26/2018
1.2.6 185 4/24/2018
1.2.5 168 4/23/2018
1.2.4 167 4/23/2018
1.2.3 201 4/22/2018
1.2.2 279 4/21/2018
1.2.1 172 3/22/2018
1.2.0 175 3/22/2018
1.1.2 262 3/13/2018
1.1.1 210 3/13/2018
1.1.0 191 3/12/2018
1.0.2 917 3/12/2018
1.0.1 1,730 3/12/2018
1.0.0 1,820 3/12/2018
0.1.2 154 3/10/2018
0.1.1 272 3/10/2018
0.1.0 176 3/10/2018
0.0.5-alpha 196 3/8/2018
0.0.4-alpha 171 2/13/2018
0.0.3-alpha 170 1/22/2018