Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
AutoMapper 地图子属性也定义了地图
我有以下域对象 public class DomainClass public int Id get set public string A get set public string B get set 我有以下两个要映射到的对象 pub
c
AutoMapper
Automapper v5 忽略未映射的属性
以前 当我使用 Automapper v3 x 时 只需添加一个即可忽略未映射的属性 IgnoreUnmappedProperties 扩展看起来像这样 public static class AutoMapperExtensions pu
AutoMapper
automapper5
AutoMapper 使用私有设置器映射属性
是否可以使用 AutoMapper 通过私有设置器分配属性 AutoMapper 现在允许 我不确定从什么时候开始 使用私有设置器映射属性 它使用反射来创建对象 示例类 public class Person public string N
AutoMapper
private
setter
AutoMapper,如何保持映射对象之间的引用?
我使用 AutoMapper 将 UI 模型转换为 POCO 然后使用 DataContractSerializer 将其序列化为 XML 以便保留它们之间的引用 问题来了 在绘制地图时 这些实体之间的引用丢失 UI 类相互引用 但映射过程
c
model
reference
AutoMapper
poco
Automapper 地图自定义集合
Hello 我有一个看起来像这样的列表 public class PagedList
AutoMapper
使用 Automapper 中的 Profiles 将相同类型映射到不同逻辑
我在 ASP NET MVC 网站中使用 AutoMapper 将数据库对象映射到 ViewModel 对象 并且尝试使用多个配置文件来映射相同的类型 但使用另一种逻辑 我有通过阅读来做到这一点的想法马特的博客文章 http mhinze
c
AutoMapper
自动映射器映射对象
此附加要求基于此问题一个来源到多个目的地 https stackoverflow com questions 63643577 automapper one source to multiple destination class Dest
c
AutoMapper
Automapper:手动映射属性
我刚刚开始使用 automapper 来映射 DTO实体 它似乎工作得很好 在某些特殊情况下 我只想映射某些属性并执行额外的检查 如果没有自动映射器 代码如下所示 使用fasterflect的PropertyExtensions objec
c
AutoMapper
映射日期时间未转换为正确的格式
我有这个映射器 在映射逻辑中我将检查属性是否具有属性 CustomDateConverAttribute 如果有 我将调用一个函数将字符串转换为正确的格式 CreateMap
c
ASPNETCore
AutoMapper
使用 AutoMapper 映射分组集合
我有以下代码不起作用 var groupedZones this zoneDataManager GetZonesGroupedByCountry IEnumerable
c
Collections
IEnumerable
AutoMapper
igrouping
Asp.net core 2.0 AutoMapper IValueResolver 依赖注入
我已经尝试过 Google Results Stackoverflow 和 AutoMapper 中的大部分示例 但无法让 IValueResolverdependancy 注入工作 我有以下服务 public class StorageS
dependencyinjection
AutoMapper
aspnetcore20
Resolver
automapper,映射到接口
我正在使用 automapper 适用于 net 3 5 这是一个例子来说明我正在尝试做的事情 我想将 A 对象映射到 B 对象 类定义 class A public I1 MyI get set class B public I2 MyI
AutoMapper
使用 Automapper 忽略子类映射中的基类属性的问题
我有一个场景 我想忽略基类中定义的类的某些属性 我有一个像这样的初始映射 Mapper CreateMap
AutoMapper
automapper 带有动作的地图集合
我有以下代码 IList
c
NET
ASPNETCore
AutoMapper
AutoMapper - 根据条件映射到派生对象
我想根据某些属性的值将源类映射到派生 从抽象 目标类 我有以下源类 public partial class ApplicationDriver public virtual ICollection
c
AutoMapper
automapper6
Automapper 3.0 - 此平台不支持此类型 IMapperRegistry
我更新了我的项目以使用自动映射器3 0 0现在我的 TFS 构建没有成功 错误如下 System PlatformNotSupportedException System PlatformNotSupportedException 此平台
AutoMapper
notsupportedexception
automapper3
自动映射器有什么用?
What s 自动映射器 http www codeplex com AutoMapper for 它将如何帮助我处理域和控制器层 asp net mvc 也许一个例子会有所帮助 假设您有一个很好标准化的数据库模式 如下所示 Orders
aspnet
NET
ASPNETMVC
AutoMapper
Automapper 继承——重用映射
我正在尝试使用自动映射器为父对象创建单个映射 并在其子对象中重用它 对于子属性 我只想映射额外的字段 这可能吗 我的代码看起来像这样 CreateCalculationMap message This does the BASE paren
c
AutoMapper
我应该如何为 Unity 和 AutoMapper 实现 MVC Bootstrapper?
为我的 MVC 2 应用程序创建引导程序的最佳方法是什么 我正在使用 Unity 和 AutoMapper 并希望尽可能抽象它们的加载和配置 一个不错的例子在这里 http weblogs asp net rashid archive 20
ASPNETMVC
unitycontainer
AutoMapper
bootstrapper
在 AutoMapper 中映射子列表属性上的“计数”
我正在使用 ASP NET MVC 4 应用程序 并且我的域有类似的东西 public class Party public Cake PartyCake get set public List
list
AutoMapper
«
1
2
3
4
5
6
...12
»