EasyDDD.Repository.EF 2.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package EasyDDD.Repository.EF --version 2.1.0                
NuGet\Install-Package EasyDDD.Repository.EF -Version 2.1.0                
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="EasyDDD.Repository.EF" Version="2.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EasyDDD.Repository.EF --version 2.1.0                
#r "nuget: EasyDDD.Repository.EF, 2.1.0"                
#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.
// Install EasyDDD.Repository.EF as a Cake Addin
#addin nuget:?package=EasyDDD.Repository.EF&version=2.1.0

// Install EasyDDD.Repository.EF as a Cake Tool
#tool nuget:?package=EasyDDD.Repository.EF&version=2.1.0                
How to Use
  • Startup
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddEasyDDD(typeof(EFContext).Assembly,typeof(DemoRepository).Assembly,typeof(DemoService).Assembly,typeof(IDemoRepository).Assembly,typeof(IDemoService).Assembly);
 }
 public void Configure( IApplicationBuilder app, IWebHostEnvironment env){
     app.UseEasyDDD();
 }
  • DbContext
public class EFContext : EF.UnitOfWork
{        
    public EFContext(DbContextOptions options):base(options){}
    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder){}
    protected override void OnModelCreating(ModelBuilder modelBuilder){}
}
or 
public class MongoContext : Mongo.UnitOfWork
{
    public static MongoClient client;
    public MongoContext() : base(ref client) {}
    protected override string DataBaseName => "Collection";
    protected override string ConnStr => "MongoDB";
}
or
public class RedisContext : Redis.UnitOfWork
{
    public static StackExchange.Redis.ConnectionMultiplexer redisServer;
    public RedisContext() : base(ref redisServer) { }
    protected override string Connstr => "redisconn";
}
  • Repository
public interface IDemoRepository:IBaseRepository<Demo,string>{}
public class DemoRepository :BaseRepository<Demo,string>,IDemoRepository
{  
    public DemoRepository(MongoContext context) : base(context) { }
}
  • Service
public interface IDemoService:IBaseService<Demo,string>{}
public class DemoService : BaseService<Demo, string>,IDemoService
{
    public DemoService(IDemoEFRepository repository) : base(repository) { }
}
  • Controller
public class ValuesController : ControllerBase
{
    private IDemoService service;
    public ValuesController(IDemoService service){
        this.service = service;
    }
    public void Get(){
        service.Find...
        service.Insert...
        service.Update...
        service.Delete...
    }
}
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.3 183 7/1/2024
3.0.2 123 3/6/2024 3.0.2 is deprecated because it is no longer maintained and has critical bugs.
3.0.0 483 11/29/2023 3.0.0 is deprecated because it is no longer maintained and has critical bugs.
2.3.2 189 11/22/2023 2.3.2 is deprecated because it is no longer maintained and has critical bugs.
2.2.0 326 10/7/2023 2.2.0 is deprecated because it is no longer maintained and has critical bugs.
2.1.1 1,001 4/28/2023 2.1.1 is deprecated because it is no longer maintained and has critical bugs.
2.1.0 620 3/10/2022 2.1.0 is deprecated because it is no longer maintained and has critical bugs.
2.0.14 611 2/24/2022 2.0.14 is deprecated because it is no longer maintained and has critical bugs.
2.0.12 549 2/14/2022 2.0.12 is deprecated because it is no longer maintained and has critical bugs.
2.0.10 487 1/20/2022 2.0.10 is deprecated because it is no longer maintained and has critical bugs.
2.0.9 482 1/14/2022 2.0.9 is deprecated because it is no longer maintained and has critical bugs.
2.0.8 476 1/14/2022 2.0.8 is deprecated because it is no longer maintained and has critical bugs.
2.0.6 486 1/14/2022 2.0.6 is deprecated because it is no longer maintained and has critical bugs.
2.0.5 455 1/14/2022 2.0.5 is deprecated because it is no longer maintained and has critical bugs.
2.0.4 875 12/1/2021 2.0.4 is deprecated because it is no longer maintained and has critical bugs.
2.0.3 451 10/25/2021 2.0.3 is deprecated because it is no longer maintained and has critical bugs.
2.0.2 488 10/20/2021 2.0.2 is deprecated because it is no longer maintained and has critical bugs.
2.0.1 365 9/26/2021 2.0.1 is deprecated because it is no longer maintained and has critical bugs.
2.0.0 355 8/9/2021 2.0.0 is deprecated because it is no longer maintained and has critical bugs.
1.9.1 410 7/23/2021 1.9.1 is deprecated because it is no longer maintained and has critical bugs.
1.9.0 354 7/23/2021 1.9.0 is deprecated because it is no longer maintained and has critical bugs.
1.7.0 442 5/15/2021 1.7.0 is deprecated because it is no longer maintained and has critical bugs.
1.6.7 515 1/11/2021 1.6.7 is deprecated because it is no longer maintained and has critical bugs.
1.6.6 418 1/11/2021 1.6.6 is deprecated because it is no longer maintained and has critical bugs.
1.6.5 406 1/4/2021 1.6.5 is deprecated because it is no longer maintained and has critical bugs.
1.6.4 474 12/30/2020 1.6.4 is deprecated because it is no longer maintained and has critical bugs.
1.6.3 489 12/17/2020 1.6.3 is deprecated because it is no longer maintained and has critical bugs.
1.6.2 470 12/11/2020 1.6.2 is deprecated because it is no longer maintained and has critical bugs.
1.6.1 462 12/10/2020 1.6.1 is deprecated because it is no longer maintained and has critical bugs.
1.6.0 452 12/10/2020 1.6.0 is deprecated because it is no longer maintained and has critical bugs.
1.5.10 441 11/17/2020 1.5.10 is deprecated because it is no longer maintained and has critical bugs.
1.5.9 477 11/13/2020 1.5.9 is deprecated because it is no longer maintained and has critical bugs.
1.5.8 455 11/13/2020 1.5.8 is deprecated because it is no longer maintained and has critical bugs.
1.5.7 511 11/13/2020 1.5.7 is deprecated because it is no longer maintained and has critical bugs.
1.5.6 535 11/13/2020 1.5.6 is deprecated because it is no longer maintained and has critical bugs.
1.5.5 516 11/13/2020 1.5.5 is deprecated because it is no longer maintained and has critical bugs.
1.5.4 540 11/6/2020 1.5.4 is deprecated because it is no longer maintained and has critical bugs.
1.5.3 482 11/6/2020 1.5.3 is deprecated because it is no longer maintained and has critical bugs.
1.5.2 471 11/6/2020 1.5.2 is deprecated because it is no longer maintained and has critical bugs.
1.5.0 504 11/6/2020 1.5.0 is deprecated because it is no longer maintained and has critical bugs.
1.4.0 471 11/5/2020 1.4.0 is deprecated because it is no longer maintained and has critical bugs.
1.3.0 486 11/3/2020 1.3.0 is deprecated because it is no longer maintained and has critical bugs.
1.1.0 583 5/8/2020 1.1.0 is deprecated because it is no longer maintained and has critical bugs.