EasyDDD.Core
3.0.3
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
dotnet add package EasyDDD.Core --version 3.0.3
NuGet\Install-Package EasyDDD.Core -Version 3.0.3
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.Core" Version="3.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EasyDDD.Core --version 3.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EasyDDD.Core, 3.0.3"
#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.Core as a Cake Addin #addin nuget:?package=EasyDDD.Core&version=3.0.3 // Install EasyDDD.Core as a Cake Tool #tool nuget:?package=EasyDDD.Core&version=3.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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:IEFBaseRepository<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 | Versions 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 is compatible. 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 is compatible. 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.
-
.NETStandard 2.0
- LinqKit.Core (>= 1.2.4)
- MediatR.Extensions.Microsoft.DependencyInjection (>= 6.0.0 && <= 9.0.0)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 2.2.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Logging.Abstractions (>= 2.2.0)
- System.Linq.Dynamic.Core (>= 1.3.0)
-
net5.0
- LinqKit.Core (>= 1.2.4)
- MediatR.Extensions.Microsoft.DependencyInjection (>= 6.0.0 && <= 11.0.1)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 5.0.0)
- System.Linq.Dynamic.Core (>= 1.3.0)
-
net6.0
- LinqKit.Core (>= 1.2.4)
- MediatR (>= 12.0.1)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 6.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.0)
- System.Linq.Dynamic.Core (>= 1.3.0)
-
net7.0
- LinqKit.Core (>= 1.2.4)
- MediatR (>= 12.0.1)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 7.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
- System.Linq.Dynamic.Core (>= 1.3.0)
-
net8.0
- LinqKit.Core (>= 1.2.4)
- MediatR (>= 12.0.1)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- System.Linq.Dynamic.Core (>= 1.3.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on EasyDDD.Core:
Package | Downloads |
---|---|
EasyDDD.Repository.EF
领域驱动仓储ef实现 |
|
EasyDDD.Repository.Mongo
领域驱动仓储mongodb实现 |
|
EasyDDD.Repository.Redis
领域驱动仓储redis实现 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.3 | 264 | 7/1/2024 |
3.0.2 | 206 | 3/6/2024 |
3.0.1 | 431 | 12/4/2023 |
2.3.3 | 150 | 11/23/2023 |
2.3.2 | 328 | 11/22/2023 |
2.2.1 | 243 | 10/10/2023 |
2.1.1 | 1,263 | 4/28/2023 |
2.1.0 | 1,585 | 3/10/2022 |
2.0.15 | 565 | 2/25/2022 |
2.0.12 | 1,510 | 2/14/2022 |
2.0.10 | 1,405 | 1/20/2022 |
2.0.9 | 1,141 | 1/14/2022 |
2.0.8 | 717 | 1/14/2022 |
2.0.7 | 421 | 1/14/2022 |
2.0.4 | 2,494 | 12/1/2021 |
2.0.3 | 983 | 10/25/2021 |
2.0.1 | 1,179 | 9/26/2021 |
2.0.0 | 887 | 8/9/2021 |
1.9.1 | 1,011 | 7/23/2021 |
1.9.0 | 910 | 7/23/2021 |
1.8.0 | 351 | 7/23/2021 |
1.7.0 | 896 | 5/15/2021 |
1.6.7 | 1,013 | 1/11/2021 |
1.6.6 | 911 | 1/11/2021 |
1.6.5 | 570 | 1/5/2021 |
1.6.4 | 1,099 | 12/30/2020 |
1.6.3 | 989 | 12/17/2020 |
1.6.2 | 1,008 | 12/11/2020 |
1.6.1 | 973 | 12/10/2020 |
1.6.0 | 948 | 12/10/2020 |
1.5.10 | 974 | 11/17/2020 |
1.5.9 | 1,037 | 11/13/2020 |
1.5.8 | 986 | 11/13/2020 |
1.5.7 | 1,025 | 11/13/2020 |
1.5.6 | 1,044 | 11/13/2020 |
1.5.5 | 1,038 | 11/13/2020 |
1.5.4 | 1,019 | 11/6/2020 |
1.5.3 | 1,009 | 11/6/2020 |
1.5.2 | 1,100 | 11/6/2020 |
1.5.1 | 447 | 11/6/2020 |
1.5.0 | 1,086 | 11/6/2020 |
1.4.0 | 1,088 | 11/5/2020 |
1.2.1 | 1,034 | 11/3/2020 |
1.1.0 | 1,190 | 5/8/2020 |