EFGenericUnitOfWork 1.0.34
See the version list below for details.
dotnet add package EFGenericUnitOfWork --version 1.0.34
NuGet\Install-Package EFGenericUnitOfWork -Version 1.0.34
<PackageReference Include="EFGenericUnitOfWork" Version="1.0.34" />
<PackageVersion Include="EFGenericUnitOfWork" Version="1.0.34" />
<PackageReference Include="EFGenericUnitOfWork" />
paket add EFGenericUnitOfWork --version 1.0.34
#r "nuget: EFGenericUnitOfWork, 1.0.34"
#:package EFGenericUnitOfWork@1.0.34
#addin nuget:?package=EFGenericUnitOfWork&version=1.0.34
#tool nuget:?package=EFGenericUnitOfWork&version=1.0.34
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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Microsoft.EntityFrameworkCore.Abstractions (>= 9.0.7)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.7)
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.41 | 207 | 7/27/2025 |
| 1.0.40 | 188 | 7/27/2025 |
| 1.0.39 | 186 | 7/27/2025 |
| 1.0.38 | 200 | 7/26/2025 |
| 1.0.37 | 216 | 7/26/2025 |
| 1.0.36 | 234 | 7/26/2025 |
| 1.0.35 | 273 | 7/26/2025 |
| 1.0.34 | 281 | 7/26/2025 |
| 1.0.33 | 276 | 7/26/2025 |
| 1.0.32 | 456 | 3/24/2025 |
| 1.0.31 | 335 | 3/23/2025 |
| 1.0.30 | 246 | 3/11/2025 |
| 1.0.29 | 241 | 3/11/2025 |
| 1.0.28 | 291 | 3/5/2025 |
| 1.0.27 | 182 | 2/18/2025 |
| 1.0.26 | 174 | 2/18/2025 |
| 1.0.25 | 181 | 2/17/2025 |
| 1.0.24 | 171 | 2/17/2025 |
| 1.0.23 | 180 | 2/17/2025 |
| 1.0.22 | 174 | 2/16/2025 |
Initial release with support for Entity Framework Core, Repository Pattern, UnitOfWork Pattern, SoftDelete functionality, paging, and synchronous/asynchronous support.