PocoEmit.Mapper.DI 0.5.1-alpha

This is a prerelease version of PocoEmit.Mapper.DI.
dotnet add package PocoEmit.Mapper.DI --version 0.5.1-alpha
                    
NuGet\Install-Package PocoEmit.Mapper.DI -Version 0.5.1-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PocoEmit.Mapper.DI" Version="0.5.1-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PocoEmit.Mapper.DI" Version="0.5.1-alpha" />
                    
Directory.Packages.props
<PackageReference Include="PocoEmit.Mapper.DI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PocoEmit.Mapper.DI --version 0.5.1-alpha
                    
#r "nuget: PocoEmit.Mapper.DI, 0.5.1-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PocoEmit.Mapper.DI@0.5.1-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PocoEmit.Mapper.DI&version=0.5.1-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=PocoEmit.Mapper.DI&version=0.5.1-alpha&prerelease
                    
Install as a Cake Tool

IOC注册Emit映射工具

一、容器注册转化器

1. 默认注册

通过容器中默认的IMapper对象或Mapper.Default构造转化器

services.UseConverter();

2. 指定IPocoOptions对象注册

services.UseConverter(PocoEmit.Mapper.Default);

注: PocoEmit.Mapper.Default继承IPocoOptions接口

3. 隔离注册

指定IPocoOptions和serviceKey注册

IPocoOptions poco = specialMapper;
services.UseConverter(poco, "special");

4. 通过IPocoConverter注入

通过构造函数参数、属性等方式注入

public sealed class Mapper(IPocoConverter<User, UserListDTO> converter)
    : Mapper<Request, Response, IEnumerable<User>>
{
    // ...
}

二、容器注册复制器

1. 默认注册

通过容器中默认的IMapper对象或Mapper.Default构造复制器

services.UseCopier();

2. 指定IMapper对象注册

services.UseCopier(PocoEmit.Mapper.Default);

注: PocoEmit.Mapper.Default继承IMapper接口

3. 隔离注册

指定IPocoOptions和serviceKey注册

IPocoOptions poco = specialMapper;
services.UseCopier(poco, "special");

4. 通过IPocoCopier注入

通过构造函数参数、属性等方式注入

public sealed class Mapper(IPocoCopier<User, UserListDTO> copier)
    : Mapper<Request, Response, IEnumerable<User>>
{
    // ...
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 is compatible.  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 is compatible.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.1-alpha 85 8/14/2025
0.5.0-alpha 87 8/12/2025
0.4.1-alpha 68 8/9/2025
0.4.0-alpha 167 8/5/2025
0.3.0-alpha 12 8/2/2025
0.2.2-alpha 77 8/1/2025
0.2.1-alpha 87 7/30/2025
0.2.0-alpha 88 7/28/2025