https://github.com/godeltech/godeltech.business.automapper
Library for using AutoMapper with GodelTech.Business
https://github.com/godeltech/godeltech.business.automapper
Last synced: 24 days ago
JSON representation
Library for using AutoMapper with GodelTech.Business
- Host: GitHub
- URL: https://github.com/godeltech/godeltech.business.automapper
- Owner: GodelTech
- License: mit
- Created: 2021-07-11T18:07:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-27T16:04:09.000Z (5 months ago)
- Last Synced: 2025-04-11T22:09:30.490Z (about 1 month ago)
- Language: C#
- Size: 45.9 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GodelTech.Business.AutoMapper
Library for using AutoMapper with GodelTech.Business
## Overview
`GodelTech.Business.AutoMapper` implements [GodelTech.Business](https://github.com/GodelTech/GodelTech.Business) `IBusinessMapper` interface using [AutoMapper](https://www.nuget.org/packages/AutoMapper) NuGet package. It allows to use mapping of `TSource` to `TDestination`.```csharp
public class BusinessMapper : IBusinessMapper
{
private readonly IMapper _mapper;public BusinessMapper(IMapper mapper)
{
_mapper = mapper;
}public TDestination Map(TSource source)
{
return _mapper.Map(source);
}public TDestination Map(TSource source, TDestination destination)
{
return _mapper.Map(source, destination);
}
}
```