CSESoftware.Repository.EntityFramework
3.0.0-beta03
dotnet add package CSESoftware.Repository.EntityFramework --version 3.0.0-beta03
NuGet\Install-Package CSESoftware.Repository.EntityFramework -Version 3.0.0-beta03
<PackageReference Include="CSESoftware.Repository.EntityFramework" Version="3.0.0-beta03" />
<PackageVersion Include="CSESoftware.Repository.EntityFramework" Version="3.0.0-beta03" />
<PackageReference Include="CSESoftware.Repository.EntityFramework" />
paket add CSESoftware.Repository.EntityFramework --version 3.0.0-beta03
#r "nuget: CSESoftware.Repository.EntityFramework, 3.0.0-beta03"
#:package CSESoftware.Repository.EntityFramework@3.0.0-beta03
#addin nuget:?package=CSESoftware.Repository.EntityFramework&version=3.0.0-beta03&prerelease
#tool nuget:?package=CSESoftware.Repository.EntityFramework&version=3.0.0-beta03&prerelease
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- CSESoftware.Core (>= 3.0.0-beta03)
- CSESoftware.Repository (>= 3.0.0-beta03)
- Effort.EF6 (>= 2.2.17)
- EntityFramework (>= 6.5.1)
- NMemory (>= 3.1.6)
- System.ComponentModel.Annotations (>= 5.0.0)
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 |