automapper-6

    0

    2답변

    2 개 클래스를 구성 I 다음 DB (인프라) 클래스가 있습니다 [Table("ApplicationDriverEquipments")] public partial class ApplicationDriverEquipment { public int Id { get; set; } [StringLength(256)] public str

    2

    1답변

    소스 클래스에 추상지도 : 내가 쓴 한 public class ApplicationDriverDomain { public List<ApplicationDriverEquipmentAbstractDomain> Equipments { get; set; } } public abstract class ApplicationDriverEquipmentA

    0

    2답변

    자동 매퍼 6.1을 사용 중이고 일부 개체의 값을 다른 개체로 매핑하려고하지만 이러한 값을 null로 설정할 수 없으며 모든 개체 속성이 매핑되지 않았다고 가정합니다. ForAllMembers 조건을 쉽게 사용할 수 있습니다. 내가 뭘하려고 수 있습니다 : config.CreateMap<ClassA, ClassB>() .ForMember(x =>

    -1

    2답변

    에서 일부 개체를 제외 I 다음지도 규칙이 있습니다 CreateMap<ViewModels.ApplicationDriverAccidentFormVM, ApplicationDriverAccidentDomain>(); 가 나는 모두가 사고의 특성을 가지고 있으며, ApplicationDriverDomain에 ViewModels.ApplicationDriver

    0

    1답변

    내가 비즈니스 계층에서이 같은 수업을 말 : Namespace Business { public class Order { public int ID { get; set; } public List <OrderItem> OrderItems { get; set; } } public class OrderItem

    3

    1답변

    리스트와 완전히 다른 이름 사이를 매핑 할 수있는 매핑 구성 방법을 찾으려고합니다. 우리의 데이터베이스는 네덜란드어이며 스캐 폴딩 도구 (scaffold-dbcontext와 같은)는 DTO의 테이블 이름을 유지합니다. 우리의 db 관련 레이어 밖에서 우리는 영어 명사를 선호합니다. 내가 Afdeling Id: int TypeKode: st

    0

    1답변

    런타임 매개 변수를 기반으로 컬렉션에서 단일 인스턴스로 매핑 할 수 있도록 Automapper를 구성 할 수 있습니까? 우리의 응용 프로그램에는 엔티티마다 각 언어에 대한 레이블이 있습니다. 현재 사용자의 기본 설정에 따라 단일 값이 표시되어야합니다. DepartmentEntity Labels: Label[] Value: string

    1

    1답변

    어떻게 오토 데스크를 사용하여 콘크리트 객체의 단일 객체에 객체 컬렉션을 매핑 할 수 있습니까? 샘플 : 모델 : public class SystemOptionsModel { public string OptionID { get; set; } public string OptionValue { get; set; } } DTO : Cre

    0

    1답변

    를 모델링 할 수 있지만 무엇입니까 AutoMapper.AutoMapperMappingException '. 누락 형태 맵 구성 또는 지원되지 않는 매핑' public class MenuItemViewModel { [Required] public string Text { get; set; } public string URL {

    0

    1답변

    내 자동 구성에 반올림을 추가하는 방법이 필요합니다. 여기에 제안 된대로 IValueFormatter를 사용해 보았습니다 : Automapper Set Decimals to all be 2 decimals 그러나 AutoMapper는 포맷터를 더 이상 지원하지 않습니다. 다른 형식으로 변환 할 필요가 없으므로 형식 변환기가 최상의 솔루션인지는 확실하지 않습