https://github.com/godeltech/godeltech.business.automapper
Library for using AutoMapper with GodelTech.Business
https://github.com/godeltech/godeltech.business.automapper
Last synced: 4 months 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 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-27T16:04:09.000Z (over 1 year ago)
- Last Synced: 2025-11-13T05:19:33.974Z (7 months 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);
}
}
```