EfCore.TestSupport 5.0.0

Useful tools when unit testing applications that use Entity Framework Core. See readme file on github.

Install-Package EfCore.TestSupport -Version 5.0.0
dotnet add package EfCore.TestSupport --version 5.0.0
<PackageReference Include="EfCore.TestSupport" Version="5.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EfCore.TestSupport --version 5.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EfCore.TestSupport, 5.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install EfCore.TestSupport as a Cake Addin
#addin nuget:?package=EfCore.TestSupport&version=5.0.0

// Install EfCore.TestSupport as a Cake Tool
#tool nuget:?package=EfCore.TestSupport&version=5.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

EfCore.TestSupport

This NuGet package containing methods to help you unit test applications that use Entity Framework Core for database access. This readme provides links to the documentation in the EfCore.TestSupport wiki. Also see Release Notes for information on changes.

NOTE: The first number in the version number of this library defines what version of EF Core it works for. e.g. EfCore.TestSupport version 5 is works with to EF Core 5.

WARNING: If you are updating from the original EfCore.TestSupport (2.1 or 3), then you should read the Version5UpgradeDocs.md file as there are some breaking changes in this version.

This project is open-source (MIT licence).

EfCore.TestSupport

This NuGet package containing methods to help you unit test applications that use Entity Framework Core for database access. This readme provides links to the documentation in the EfCore.TestSupport wiki. Also see Release Notes for information on changes.

NOTE: The first number in the version number of this library defines what version of EF Core it works for. e.g. EfCore.TestSupport version 5 is works with to EF Core 5.

WARNING: If you are updating from the original EfCore.TestSupport (2.1 or 3), then you should read the Version5UpgradeDocs.md file as there are some breaking changes in this version.

This project is open-source (MIT licence).

Release Notes

A serious cleanup to the this library with BREAKING CHANGES
     BREAKING CHANGES
     - Altered SqliteInMemory methods to return a IDisposable options (disposes connection at the end of the test). THIS WILL BREAK YOUR CODE.
     - Cosmos DB methods renames and extended
     REMOVED FEATURES
     - Removed EfSchemaCompare - going to its own library (but not there yet)
     - Removed SeedDatabase - use old 3.2.0 EfCore.TestSupport version
     - Remove InMemory Database helper - use EF Core's In Memory database
     NEW FEATURES
     - Add `EnsureClean`. This clears the schema and data and set up new model (only for SQL Server)
     - SqliteInMemory now has CreateOptionsWithLogTo extension method
     - SqlServer now has CreateUniqueClassOptionsWithLogTo and CreateUniqueMethodOptionsWithLogTo extension methods
     MARKED AS OBSOLETE
     - CreateOptionsWithLogging - use ...ToLog version
     - CreateUniqueClassOptionsWithLogging - use ...ToLog version
     - CreateUniqueMethodOptionsWithLogging - use ...ToLog version
     - CreateEmptyViaWipe - recommend `EnsureClean` or respawn

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on EfCore.TestSupport:

Repository Stars
JonPSmith/EfCore.GenericServices
A library to help you quickly code CRUD accesses for a web/mobile/desktop application using EF Core.
JonPSmith/PermissionAccessControl2
Version 2 of example application to go with articles on feature and data authorization
JonPSmith/PermissionAccessControl
Example code for Authorization articles
JonPSmith/EfCore.GenericBizRunner
Library to run business logic when using Entity Framework Core for database accesses
JonPSmith/EfCoreinAction-SecondEdition
Supporting repo to go with book "Entity Framework Core in Action", second edition

Version History

Version Downloads Last updated
5.0.0 20,494 1/2/2021
5.0.0-preview006 382 12/11/2020
5.0.0-preview005 134 12/10/2020
5.0.0-preview004 160 12/10/2020
5.0.0-preview003 158 12/5/2020
5.0.0-preview002 131 12/5/2020
5.0.0-preview001 190 12/5/2020
3.2.0 70,518 5/23/2020
3.1.1 19,541 3/26/2020
3.1.0 44,030 11/1/2019
3.0.0 6,833 10/12/2019
2.0.1 26,839 7/22/2019
2.0.0 14,809 6/4/2019
1.9.0 48,343 4/22/2019
1.8.0 3,833 3/25/2019
1.7.0 1,586 3/19/2019
1.6.1 10,442 1/28/2019
1.6.0 376 1/28/2019
1.5.2 10,267 1/4/2019
1.5.1 30,793 10/24/2018
1.5.0 2,701 10/2/2018
1.4.0 12,137 6/7/2018
1.3.1 2,455 4/1/2018
1.3.0 1,509 3/1/2018
1.2.0 974 1/22/2018
1.1.5 814 12/27/2017
1.1.4 638 12/27/2017
1.1.3 808 12/1/2017
1.1.2 600 11/21/2017
1.1.1 569 11/17/2017
1.1.0 586 11/16/2017
1.0.2 581 10/13/2017
1.0.1 561 9/30/2017
1.0.0 708 9/29/2017