ClassyMapper 1.1.0
See the version list below for details.
dotnet add package ClassyMapper --version 1.1.0
NuGet\Install-Package ClassyMapper -Version 1.1.0
<PackageReference Include="ClassyMapper" Version="1.1.0" />
paket add ClassyMapper --version 1.1.0
#r "nuget: ClassyMapper, 1.1.0"
// Install ClassyMapper as a Cake Addin #addin nuget:?package=ClassyMapper&version=1.1.0 // Install ClassyMapper as a Cake Tool #tool nuget:?package=ClassyMapper&version=1.1.0
C# Property Mapper that utilizes attributes in order to perform the mapping.
While I personally love auto mappers, I don't like being forced to configure
one type to another. In the end, I am just mapping one set of properties to
another set of properties. All I care about is that the names match
(or I can tell it what name to look for) and the types are assignable.
ClassyMapper will do just that!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 is compatible. net451 is compatible. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
- Up to 500% speed increase!
- Added multi-threading when mapping through lists
- Removed expensive lock calls and replaced with ConcurrentDictionary
- Changed .SingleOrDfault() to .FirstOrDefault since it is impossible for there to be 2 properties with the exact same name in a class and this speeds things up greatly
- Added static method ClearCacheObjects in case you want to clear these caches every now and then
- Added IClassyMapperConfig just incase you need to use a different implementation
- Fixed a bug where a Struct could not be mapped from a dto back to an entity
- Changed MapClass to include structs
- Due to this, changed MapClassAttribute to MapAllPropertiesAttribute