https://github.com/godeltech/godeltech.data.automapper
Library for using AutoMapper with GodelTech.Data
https://github.com/godeltech/godeltech.data.automapper
Last synced: 27 days ago
JSON representation
Library for using AutoMapper with GodelTech.Data
- Host: GitHub
- URL: https://github.com/godeltech/godeltech.data.automapper
- Owner: GodelTech
- License: mit
- Created: 2020-07-10T05:48:35.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-27T16:01:21.000Z (5 months ago)
- Last Synced: 2025-04-19T15:53:35.612Z (about 1 month ago)
- Language: C#
- Homepage:
- Size: 52.7 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GodelTech.Data.AutoMapper
Library for using AutoMapper with GodelTech.Data.
## Overview
`GodelTech.Data.AutoMapper` implements [GodelTech.Data](https://github.com/GodelTech/GodelTech.Data) `IDataMapper` interface using [AutoMapper](https://www.nuget.org/packages/AutoMapper) NuGet package. It allows to use mapping of `TEntity` to `TModel`.```csharp
public class DataMapper : IDataMapper
{
private readonly IMapper _mapper;public DataMapper(IMapper mapper)
{
_mapper = mapper;
}public IQueryable Map(IQueryable source)
{
return _mapper.ProjectTo(source);
}
}
```