Edgy.DapperMapper
1.1.5
dotnet add package Edgy.DapperMapper --version 1.1.5
NuGet\Install-Package Edgy.DapperMapper -Version 1.1.5
<PackageReference Include="Edgy.DapperMapper" Version="1.1.5" />
<PackageVersion Include="Edgy.DapperMapper" Version="1.1.5" />
<PackageReference Include="Edgy.DapperMapper" />
paket add Edgy.DapperMapper --version 1.1.5
#r "nuget: Edgy.DapperMapper, 1.1.5"
#:package Edgy.DapperMapper@1.1.5
#addin nuget:?package=Edgy.DapperMapper&version=1.1.5
#tool nuget:?package=Edgy.DapperMapper&version=1.1.5
DapperMapper
This library provides a Dapper mapper that maps the properties of a class/entity to database column names.
All classes that are decorated with the TableAttribute are reflected and processed when the MapAll method is called.
For the properties of a class/entity that are decorated with a ColumnAttribute, the name value of the ColumnAttribute represents the name of the column in the database.
Usage
In the example below, all the classes/entities that are part of the application that are decorated with a TableAttribute are discovered and their properties that are decorated with a ColumnAttribute are mapped to a database column name.
DapperCustomPropertyTypeMapper.MapAll();
In the example below, all the properties of the given class/entity {T} that are decorated with a ColumnAttribute are mapped to a database column name.
DapperCustomPropertyTypeMapper.Map<T>();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 was computed. 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 was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Dapper (>= 2.1.21)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1.1.5
- Neaten release notes.
1.1.4
- Add reference to github repo in package.
1.1.3
- Update to Dapper 2.1.21 and all other packages to latest.
1.1.2
- Reference README.md in package.
1.1.1
- Add license file to package.
1.1.0
- Changed class name from PropertyToColumnMapper to DapperCustomPropertyTypeMapper and corrected namespace.
- Discontinued the DapperMapAttribute as the System.ComponentModel.DataAnnotations.Schema.TableAttribute is more suitable.
1.0.0
- Initial release