Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
AutoMapper 具有来自 IDataReader 的列表数据
using IDataReader dr DatabaseContext ExecuteReader command if dr Read AutoMapper Mapper CreateMap
c
AutoMapper
idatareader
Automapper:检查 MapFrom 中的 null
使用版本 4 制作地图时如何检查 null 我尝试过 Value 但那不存在于Null Mapper CreateMap
c
AutoMapper
nullcheck
属性名称不同时如何指定映射规则
我是 Automapper 框架的新手 我有一个域类和一个 DTO 类 如下所示 public class Employee public long Id get set public string Name get set public
c
AutoMapper
Automapper - 字典到对象映射不起作用?
我正在尝试将字典转换为对象 我已经尝试过以下方法 但它不起作用 public class FormField public string FieldName get set public string FieldValue get set
c
NET
Dictionary
AutoMapper
AutoMapper:如何从字符串中解析 Int 并可以根据数据类型创建规则?
我的表单有两个模型 一个是指向它的 ViewModel 另一个是来自它的 ControlModel ControlModel 具有所有相同的字段名称和层次结构 但所有字段都是字符串数据类型 如何编写 AutoMapper 代码以将字符串字段
c
AutoMapper
casting
定义 CreateProjection 和 CreateMap
在我的项目中 我使用实体框架进行 ORM 使用 Dto 类进行 api 响应 我使用 Automapper 在两者之间进行映射 当我需要直接从 EF 可查询中获取 Dtos 时 我会执行最后的操作ProjectTo lt gt 根据我的查询
c
AutoMapper
net60
automapper映射动态对象
我正在使用 Automapper 并需要实现以下映射 但不确定如何完成 我想将 Dictionary 对象映射到动态对象 以便键是对象上的属性 字典的值是动态对象中属性的值 这可以通过自动映射器实现吗 如果可以 如何实现 你可以简单地得到D
c
Dynamic
Dictionary
AutoMapper
AutoMapper:“忽略其余的”?
有没有办法告诉 AutoMapper 忽略除了显式映射的属性之外的所有属性 我有外部 DTO 类 这些类可能会从外部发生更改 并且我希望避免显式指定要忽略的每个属性 因为在尝试将它们映射到我自己的对象中时添加新属性会破坏功能 导致异常 据我
NET
AutoMapper
注入自动映射器
我一直致力于将 AutoMapper 注入控制器 我喜欢 Code Camp Server 的实现 它围绕 AutoMapper 的 IMappingEngine 创建一个包装器 依赖注入是使用 StructureMap 完成的 但我需要在
castlewindsor
structuremap
AutoMapper
自动映射器合并对象问题
让自动映射器工作后 上一个问题 https stackoverflow com questions 36602430 automapper complex types mapping exception 我正在解决另一个问题 把它带到另一个
c
NET
AutoMapper
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
«
1
2
3
4
5
6
7
...13
»