EFGenericUnitOfWork 1.0.32
dotnet add package EFGenericUnitOfWork --version 1.0.32
NuGet\Install-Package EFGenericUnitOfWork -Version 1.0.32
<PackageReference Include="EFGenericUnitOfWork" Version="1.0.32" />
<PackageVersion Include="EFGenericUnitOfWork" Version="1.0.32" />
<PackageReference Include="EFGenericUnitOfWork" />
paket add EFGenericUnitOfWork --version 1.0.32
#r "nuget: EFGenericUnitOfWork, 1.0.32"
#addin nuget:?package=EFGenericUnitOfWork&version=1.0.32
#tool nuget:?package=EFGenericUnitOfWork&version=1.0.32
program.cs dosyasına eklenecekler örnek
builder.Services.AddScoped<IUnitOfWork, UnitOfWork<BaseDbContext>>(); builder.Services.AddDbContext<BaseDbContext>(options ⇒ options.UseSqlServer(builder.Configuration.GetConnectionString("MsSqlTallyGoDb")));
Örnek 2
// Sabit DbContext'ler services.AddDbContext<BaseDbContext>(); services.AddDbContext<MikroMainDbContext>();
// Sabit DbContext'ler için UnitOfWork kayıtları services.AddScoped<IUnitOfWork>(sp ⇒ { var context = sp.GetRequiredService<BaseDbContext>(); return new UnitOfWork<BaseDbContext>(context); });
services.AddScoped<IUnitOfWork>(sp ⇒ { var context = sp.GetRequiredService<MikroMainDbContext>(); return new UnitOfWork<MikroMainDbContext>(context); });
// MikroDbContext factory kaydı services.AddScoped<IMikroDbContextFactory, MikroDbContextFactory>();
Örnek Factory public interface IMikroDbContextFactory { MikroDbContext CreateDbContext(string databaseName); } public class MikroDbContextFactory : IMikroDbContextFactory { private readonly IConfiguration _configuration;
public MikroDbContextFactory(IConfiguration configuration)
{
_configuration = configuration;
}
public MikroDbContext CreateDbContext(string databaseName)
{
return new MikroDbContext(databaseName, _configuration);
}
}
//IdentityUser Kullanımına Örnek Olarak Eklenecektir Şayet Kullanılmıyorsa Eklenmesine Gerek Yoktur. builder.Services.AddIdentity<Kullanicilar, AppRole>(opt ⇒ { opt.Password.RequireNonAlphanumeric = true; opt.Password.RequireDigit = true;
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net9.0
- Microsoft.EntityFrameworkCore.Abstractions (>= 9.0.2)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on EFGenericUnitOfWork:
Package | Downloads |
---|---|
EmfGlobalCaching
A global caching library with support for MediatR, Memory Caching, and Redis Caching, enhancing performance and scalability. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.0.32 | 334 | 3/24/2025 | |
1.0.31 | 244 | 3/23/2025 | |
1.0.30 | 164 | 3/11/2025 | |
1.0.29 | 150 | 3/11/2025 | |
1.0.28 | 198 | 3/5/2025 | |
1.0.27 | 95 | 2/18/2025 | |
1.0.26 | 99 | 2/18/2025 | |
1.0.25 | 95 | 2/17/2025 | |
1.0.24 | 83 | 2/17/2025 | |
1.0.23 | 91 | 2/17/2025 | |
1.0.22 | 94 | 2/16/2025 | |
1.0.21 | 86 | 2/16/2025 | |
1.0.20 | 86 | 1/30/2025 | |
1.0.19 | 135 | 9/9/2024 | |
1.0.18 | 169 | 7/12/2024 | |
1.0.17 | 104 | 7/11/2024 | |
1.0.16 | 95 | 7/11/2024 | |
1.0.14 | 105 | 7/11/2024 | |
1.0.13 | 104 | 7/11/2024 | |
1.0.12 | 110 | 7/9/2024 | |
1.0.11 | 110 | 7/9/2024 | |
1.0.10 | 111 | 7/6/2024 | |
1.0.9 | 126 | 7/6/2024 | |
1.0.8 | 103 | 7/6/2024 | |
1.0.7 | 106 | 7/6/2024 | |
1.0.6 | 108 | 7/6/2024 | |
1.0.5 | 102 | 7/6/2024 | |
1.0.4 | 120 | 7/2/2024 | |
1.0.3 | 121 | 7/1/2024 | |
1.0.1 | 124 | 7/1/2024 | |
1.0.0 | 119 | 7/1/2024 |
Initial release with support for Entity Framework Core, Repository Pattern, UnitOfWork Pattern, SoftDelete functionality, paging, and synchronous/asynchronous support.