Talk.AutoMap.Extensions
1.0.1
See the version list below for details.
dotnet add package Talk.AutoMap.Extensions --version 1.0.1
NuGet\Install-Package Talk.AutoMap.Extensions -Version 1.0.1
<PackageReference Include="Talk.AutoMap.Extensions" Version="1.0.1" />
paket add Talk.AutoMap.Extensions --version 1.0.1
#r "nuget: Talk.AutoMap.Extensions, 1.0.1"
// Install Talk.AutoMap.Extensions as a Cake Addin #addin nuget:?package=Talk.AutoMap.Extensions&version=1.0.1 // Install Talk.AutoMap.Extensions as a Cake Tool #tool nuget:?package=Talk.AutoMap.Extensions&version=1.0.1
class Program
{
static void Main(string[] args)
{
//这个可放入Global.asax第一次运行时执行(传入要映射的Type)
AutoMapperModule.Init(Assembly.GetExecutingAssembly().ExportedTypes);
MyClass1 m = new MyClass1() { TestProp = "测试" };
var map = m.MapTo<MyClass2>();//
}
}
[AutoMap(typeof(MyClass2))]//特性映射
public class MyClass1
{
public string Name { get; set; }
public string TestProp { get; set; }
}
public class MyClass2
{
public string TestProp { get; internal set; }
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net452 is compatible. 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. |
-
- AutoMapper (>= 5.1.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Talk.AutoMap.Extensions:
Package | Downloads |
---|---|
Talk.Linq.Extensions
Talk.Linq.Extensions |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Talk.AutoMap.Extensions:
Repository | Stars |
---|---|
zhaopeiym/IoTClient.Examples
|
Version | Downloads | Last updated |
---|---|---|
1.0.2.10 | 159 | 10/11/2024 |
1.0.2.9 | 6,575 | 4/5/2019 |
1.0.2.8 | 698 | 4/5/2019 |
1.0.2.7 | 1,038 | 4/5/2019 |
1.0.2.7-pre | 527 | 4/5/2019 |
1.0.2.6-pre | 3,654 | 9/8/2018 |
1.0.2 | 2,568 | 2/28/2017 |
1.0.1 | 1,046 | 2/28/2017 |
1.0.0 | 1,261 | 2/27/2017 |
AutoMapper特性自动映射