this product is a lebrery to enhance the domain driven .net development
License
—
Deps
4
Install Size
—
Vulns
✓ 0
Published
Nov 30, 2024
$ dotnet add package Acubec.Solutions.CoreAcubec.Solutions.Core
this .Net library helps .net developer to developed domain driven application. This library is build on top of .net core and provide the following features.
public class OrchestratorContext(IServiceCollection containerCollection, IConfiguration configuration)
: BaseContext(containerCollection, configuration)
{
}
-
Mapping registration
internal sealed class Mapper : MapperConfiguration
{
public override void CreateProfile()
{
CreateMap<Source, Destination>((s, d) =>
{
//write your compile time mapping here
});
}
}
-
After that you need to attach this class in your project
var context = new OrchestratorContext(services, configuration);
AppContextProvider.RegisterObject(context);
var mapper = new AcubecMapper(new Mapper());
services.AddSingleton(typeof(IMapper), mapper);
-
Now you can use all the below interface in the project
This project is licensed under the MIT License - see the LICENSE.md file for details.