CSESoftware.Repository.EntityFramework 3.0.0-beta03

This is a prerelease version of CSESoftware.Repository.EntityFramework.
dotnet add package CSESoftware.Repository.EntityFramework --version 3.0.0-beta03
                    
NuGet\Install-Package CSESoftware.Repository.EntityFramework -Version 3.0.0-beta03
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CSESoftware.Repository.EntityFramework" Version="3.0.0-beta03" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CSESoftware.Repository.EntityFramework" Version="3.0.0-beta03" />
                    
Directory.Packages.props
<PackageReference Include="CSESoftware.Repository.EntityFramework" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CSESoftware.Repository.EntityFramework --version 3.0.0-beta03
                    
#r "nuget: CSESoftware.Repository.EntityFramework, 3.0.0-beta03"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CSESoftware.Repository.EntityFramework@3.0.0-beta03
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CSESoftware.Repository.EntityFramework&version=3.0.0-beta03&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CSESoftware.Repository.EntityFramework&version=3.0.0-beta03&prerelease
                    
Install as a Cake Tool

CSESoftware.Repository.EntityFramework

The Entity Framework implementation of CSESoftware.Repository.


To use this:

  • create your own DbContext
  • inherit from the BaseDbContext
  • add your DbSets
  • setup Dependency Injection
public class DbContext : BaseMockDbContext
{
 	public DbContext(string connectionString) : base(connectionString)
	{
	}

	public DbSet<Pizza> Pizzas { get; set; }
	public DbSet<Topping> Toppings { get; set; }
	public DbSet<Crust> Crusts { get; set; }
}

All of your entites should inherit from CSESoftware.Core.Entity<>

public class Pizza : BaseEntity<int>
{
	public string Name { get; set; }
	public double Cost { get; set; }

	public int CrustId { get; set; }
	public Crust Crust { get; set; }

	public int ToppingId { get; set; }
	public Topping Topping { get; set; }
}

Unity Dependency Injection Example

container.RegisterType<DbContext, ExampleDbContext>();
container.RegisterType<IRepository, CSESoftware.Repository.EntityFramework.Repository<ExampleDbContext>>();
container.RegisterType<IReadOnlyRepository, CSESoftware.Repository.EntityFramework.ReadOnlyRepository<ExampleDbContext>>();

CSE Software Inc. is a privately held company founded in 1990. CSE develops software, AR/VR, simulation, mobile, and web technology solutions. The company also offers live, 24x7, global help desk services in 110 languages. All CSE teams are U.S. based with experience in multiple industries, including government, military, healthcare, construction, agriculture, mining, and more. CSE Software is a certified women-owned small business. Visit us online at csesoftware.com.

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0-beta03 84 3/5/2026
2.2.0 305 10/30/2024
2.1.0 1,087 11/24/2020
2.0.0 1,015 7/31/2020
1.0.0 1,082 5/2/2020