public MappingProfile() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); ApplyMappingFromAssembly(Assembly.GetExecutingAssembly()); }
public RiotMappingProfile() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); CreateMap <SummonerModel, SummonerViewModel>(); }
public Profiler() { AllowNullDestinationValues = true; SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); SourceMemberNamingConvention = new PascalCaseNamingConvention(); DestinationMemberNamingConvention = new LowerUnderscoreNamingConvention(); CreateMap <cuenta_contable, CuentaContableDTO>() .ForMember(dest => dest.IdCuenta, opt => opt.MapFrom(src => src.cue_cont_id)) .ForMember(dest => dest.NumeroCuenta, opt => opt.MapFrom(src => src.cue_cont_numero)) .ForMember(dest => dest.Descripcion, opt => opt.MapFrom(src => src.cue_cont_descri)) .ForMember(dest => dest.Analisis, opt => opt.MapFrom(src => src.cue_cont_analisis)) .ForMember(dest => dest.Destino, opt => opt.MapFrom(src => src.cue_cont_destino)) .ForMember(dest => dest.Nivel, opt => opt.MapFrom(src => src.cue_cont_nivel)) .ForMember(dest => dest.Nivel, opt => opt.MapFrom(src => src.cue_cont_nivel)) .ForMember(dest => dest.OtrosTributos, opt => opt.MapFrom(src => src.cue_bflag_otros_tributos)) .ForMember(dest => dest.FlagBaseImponible, opt => opt.MapFrom(src => src.cue_bflag_base_imponible)) .ForMember(dest => dest.FlagCentroCosto, opt => opt.MapFrom(src => src.cue_cont_cent_cost)) .ForMember(dest => dest.Usuario, opt => opt.MapFrom(src => src.usuario_registro)) .ForMember(dest => dest.FechaRegistro, opt => opt.MapFrom(src => src.fecha_registro)) .ForMember(dest => dest.TipoCuenta, opt => opt.MapFrom(src => src.cue_cont_tipo)) .ReverseMap(); }
protected override void Configure() { SourceMemberNamingConvention = new PascalCaseNamingConvention(); DestinationMemberNamingConvention = new LowerUnderscoreNamingConvention(); CreateMap <SchemaField, SchemaFieldDto>(); CreateMap <Schema, SchemaDto>(); }
public BindModelToModelProfile() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); CreateMap <UserBindModel, User>(); }
protected override void Configure() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); CreateMap <Project, ProjectViewModel>(); CreateMap <ApplicationUser, UserInfoViewModel>(); CreateMap <ProjectCategory, ProjectCategoryViewModel>(); }
public MappingModelToTableProfile() { this.IgnoreUnmapped(); SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); CreateMap <AdressTable, AddressModel>(); CreateMap <UserTable, UserModel>(); }
public MappingProfile() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); //CreateMap<TrackPath, SubscribeChangeLocationEventData>(); CreateMap <AccountRegistrationModel, ApplicationUser>(); }
public MappingTableToModelProfile() { this.IgnoreUnmapped(); DestinationMemberNamingConvention = new LowerUnderscoreNamingConvention(); CreateMap <AddressModel, AdressTable>(); CreateMap <UserModel, UserTable>(); }
public ViewModelToDomainMappingProfile() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); CreateMap <CategoriaProdutoModel, CategoriaProduto>(); CreateMap <ProdutoModel, Produto>(); }
public ModelToBindModelProfile() { SourceMemberNamingConvention = new PascalCaseNamingConvention(); DestinationMemberNamingConvention = new LowerUnderscoreNamingConvention(); CreateMap <User, UserBindModel>() .ForMember(u => u.password, opt => opt.Ignore()) .ForMember(u => u.new_password, opt => opt.Ignore()); }
public ModelToBindModelProfile() { CreateMap <Users, UsersBindingModels>(); CreateMap <Courses, CoursesBindingModels>(); CreateMap <Enrollments, EnrollmentsBindingModels>(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); }
public IpStackResponseToEntityProfile() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); CreateMap <IpStackResponse, GeolocationModel>(); CreateMap <Common.Responses.IpStack.Language, LanguageModel>(); CreateMap <Common.Responses.IpStack.Location, LocationModel>(); }
public IpStackResponseToResponseProfile() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); CreateMap <IpStackResponse, GetLocationResponse>(); CreateMap <Common.Responses.IpStack.Language, Common.Responses.Geolocation.Language>(); CreateMap <Common.Responses.IpStack.Location, Common.Responses.Geolocation.Location>(); CreateMap <Common.Responses.IpStack.ResponseInfo, Common.Responses.Geolocation.ResponseInfo>(); }
public TwitchMappingProfile() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); //CreateMap<TokenModel, TopGamesViewModel>(); CreateMap <TopGamesModel, TopGamesViewModel>(); CreateMap <TopGamesModel.Datum, TopGamesViewModel.Datum>(); CreateMap <StreamsModel, StreamsViewModel>(); CreateMap <StreamsModel.Datum, StreamsViewModel.Datum>(); }
public ModelToEntityProfile() { SourceMemberNamingConvention = new PascalCaseNamingConvention(); DestinationMemberNamingConvention = new LowerUnderscoreNamingConvention(); SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); CreateMap <ContractTermDto, HmrContractTerm>(); CreateMap <DistrictDto, HmrDistrict>(); CreateMap <MimeTypeDto, HmrMimeType>(); CreateMap <PartyDto, HmrParty>(); CreateMap <PermissionDto, HmrPermission>(); CreateMap <RegionDto, HmrRegion>(); CreateMap <RoleDto, HmrRole>(); CreateMap <RoleCreateDto, HmrRole>(); CreateMap <RoleUpdateDto, HmrRole>(); CreateMap <RoleSearchDto, HmrRole>(); CreateMap <RoleDeleteDto, HmrRole>(); CreateMap <RolePermissionDto, HmrRolePermission>(); CreateMap <ServiceAreaDto, HmrServiceArea>(); CreateMap <ServiceAreaNumberDto, HmrServiceArea>(); CreateMap <ServiceAreaUserDto, HmrServiceAreaUser>(); CreateMap <SubmissionObjectDto, HmrSubmissionObject>(); CreateMap <SubmissionObjectCreateDto, HmrSubmissionObject>(); CreateMap <SubmissionRowDto, HmrSubmissionRow>(); CreateMap <SubmissionStatusDto, HmrSubmissionStatu>(); CreateMap <UserDto, HmrSystemUser>(); CreateMap <UserCreateDto, HmrSystemUser>(); CreateMap <UserCurrentDto, HmrSystemUser>(); CreateMap <UserSearchDto, HmrSystemUser>(); CreateMap <UserUpdateDto, HmrSystemUser>(); CreateMap <UserDeleteDto, HmrSystemUser>(); CreateMap <UserRoleDto, HmrUserRole>(); CreateMap <SubmissionStreamDto, HmrSubmissionStream>(); }
protected override void Configure() { this.CreateMap <TestDbClass, TestUiClass>(); // 设置源和目标的命名惯例。 // 目标:小写字母与下划线的命名方式. DestinationMemberNamingConvention = new LowerUnderscoreNamingConvention(); // 源: 帕斯卡命名法 SourceMemberNamingConvention = new PascalCaseNamingConvention(); }
public CollisionProfile() { DestinationMemberNamingConvention = new LowerUnderscoreNamingConvention(); CreateMap <CollisionDTO, Collision>() .ForMember(d => d.Date, opt => opt.Ignore()) .ForMember(d => d.Time, opt => opt.MapFrom(s => s.Date.TimeOfDay)) .ForMember(d => d.Location, opt => opt.MapFrom(s => s.Location.FromGeoJson <NetTopologySuite.Geometries.Point>())) .ForMember(d => d.X, opt => opt.MapFrom(s => s.Location.Coordinates.Longitude)) .ForMember(d => d.Y, opt => opt.MapFrom(s => s.Location.Coordinates.Latitude)); CreateMap <Collision, CollisionDTO>() .ForMember(d => d.Date, opt => opt.MapFrom(s => s.Date.Date + s.Time)) .ForMember(d => d.Location, opt => opt.MapFrom(s => s.Location.ToGeoJson <GeoJSON.Net.Geometry.Point>())); }
public EntityToModelProfile() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); CreateMap <HmrContractTerm, ContractTermDto>(); CreateMap <HmrDistrict, DistrictDto>(); CreateMap <HmrMimeType, MimeTypeDto>(); CreateMap <HmrParty, PartyDto>(); CreateMap <HmrPermission, PermissionDto>(); CreateMap <HmrRegion, RegionDto>(); CreateMap <HmrRole, RoleDto>(); CreateMap <HmrRole, RoleCreateDto>(); CreateMap <HmrRole, RoleUpdateDto>(); CreateMap <HmrRole, RoleSearchDto>(); CreateMap <HmrRole, RoleDeleteDto>(); CreateMap <HmrRolePermission, RolePermissionDto>(); CreateMap <HmrServiceArea, ServiceAreaDto>(); CreateMap <HmrServiceArea, ServiceAreaNumberDto>(); CreateMap <HmrServiceAreaUser, ServiceAreaUserDto>(); CreateMap <HmrSubmissionObject, SubmissionObjectDto>(); CreateMap <HmrSubmissionObject, SubmissionObjectCreateDto>(); CreateMap <HmrSubmissionRow, SubmissionRowDto>(); CreateMap <HmrSubmissionStatu, SubmissionStatusDto>(); CreateMap <HmrSystemUser, UserDto>(); CreateMap <HmrSystemUser, UserCreateDto>(); CreateMap <HmrSystemUser, UserCurrentDto>(); CreateMap <HmrSystemUser, UserSearchDto>(); CreateMap <HmrSystemUser, UserUpdateDto>(); CreateMap <HmrSystemUser, UserDeleteDto>(); CreateMap <HmrUserRole, UserRoleDto>(); CreateMap <HmrSubmissionStream, SubmissionStreamDto>(); }
protected override void Configure() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); CreateMap <UserProfileAdministrationGetAllDto, UserProfile>() .ForMember(dest => dest.CreatedById, opt => opt.MapFrom(src => src.CreatedById)) .ForMember(x => x.CreatedDate, n => n.MapFrom(m => m.CreatedDate)) // .ForMember(x => x.DeletedDate, n => n.MapFrom(m => m.)) .ForMember(x => x.EditedById, n => n.MapFrom(m => m.EditedById)) .ForMember(x => x.Email, n => n.MapFrom(m => m.Email)) .ForMember(x => x.MobilePhone, n => n.MapFrom(m => m.MobilePhone)) .ForMember(x => x.HomePhone, n => n.MapFrom(m => m.HomePhone)) .ForMember(x => x.LastLoginDate, n => n.MapFrom(m => m.LastLoginDate)) .ForMember(x => x.ModifiedDate, n => n.MapFrom(m => m.ModifiedDate)) .ForMember(x => x.RowVersion, n => n.MapFrom(m => m.RowVersion)) .ForMember(x => x.ObjectState, n => n.Ignore()) .ForMember(x => x.TwoFactorSecret, n => n.MapFrom(m => m.TwoFactorSecret)) .ForMember(x => x.UserName, n => n.MapFrom(m => m.UserName)) .ForMember(x => x.UserUid, n => n.MapFrom(m => m.UserUid)) .ForMember(x => x.UserId, n => n.MapFrom(m => m.UserId)) .ReverseMap(); }
protected override void Configure() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); CreateMap <TrueVaultResponseDto, TrueVaultResponse>(); CreateMap <InnerErrorDto, InnerError>(); CreateMap <ErrorResponseDto, ErrorResponse>(); #region JSON Store CreateMap <DocumentSaveSuccessResponseDto, DocumentSaveSuccessResponse>(); CreateMap <DocumentGetResponseDto, DocumentResponse>(); CreateMap <MultiDocumentGetResponseDto, MultiDocumentResponse>(); CreateMap <DocumentGetListResponseDto, DocumentGetListResponse>(); CreateMap <DocumentGetListDataDto, DocumentGetListData>(); CreateMap <DocumentGetListItemDto, DocumentGetListItem>(); #endregion CreateMap <SchemaFieldDto, SchemaField>(); //CreateMap<SchemaDto, Schema>(); //CreateMap<SchemaGetResponseDto, SchemaGetResponse>(); //CreateMap<SchemaGetListResponseDto, SchemaGetListResponse>(); //CreateMap<SchemaSaveResponseDto, SchemaSaveResponse>(); //CreateMap<SchemaSaveSuccessResponseDto, SchemaSaveSuccessResponse>(); }
public GamesMappingProfile() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); CreateMap <LeagueListingModel, LeagueListingViewModel>(); CreateMap <LiveLeagueGamesModel.Game, LiveLeagueGamesViewModel.Game>(); CreateMap <LiveLeagueGamesModel.Player, LiveLeagueGamesViewModel.Player>(); CreateMap <LiveLeagueGamesModel.Player2, LiveLeagueGamesViewModel.Player2>(); CreateMap <LiveLeagueGamesModel.Dire, LiveLeagueGamesViewModel.Dire>(); CreateMap <LiveLeagueGamesModel.Dire_Team, LiveLeagueGamesViewModel.Dire_Team>(); CreateMap <LiveLeagueGamesModel.Radiant, LiveLeagueGamesViewModel.Radiant>(); CreateMap <LiveLeagueGamesModel.Radiant_Team, LiveLeagueGamesViewModel.Radiant_Team>(); CreateMap <LiveLeagueGamesModel.Ability, LiveLeagueGamesViewModel.Ability>(); CreateMap <LiveLeagueGamesModel.Pick, LiveLeagueGamesViewModel.Pick>(); CreateMap <LiveLeagueGamesModel.Ban, LiveLeagueGamesViewModel.Ban>(); CreateMap <LiveLeagueGamesModel.Scoreboard, LiveLeagueGamesViewModel.Scoreboard>(); CreateMap <MatchDetailsModel, MatchDetailsViewModel>(); CreateMap <PlayerStatsModel, PlayerStatsViewModel>(); CreateMap <TeamInfoModel, TeamInfoViewModel>(); }
public ModelToEntityProfile() { SourceMemberNamingConvention = new PascalCaseNamingConvention(); DestinationMemberNamingConvention = new LowerUnderscoreNamingConvention(); SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); CreateMap <ContractTermDto, HmrContractTerm>(); CreateMap <DistrictDto, HmrDistrict>(); CreateMap <MimeTypeDto, HmrMimeType>(); CreateMap <PartyDto, HmrParty>(); CreateMap <PermissionDto, HmrPermission>(); CreateMap <RegionDto, HmrRegion>(); CreateMap <RoleDto, HmrRole>(); CreateMap <RoleCreateDto, HmrRole>(); CreateMap <RoleUpdateDto, HmrRole>(); CreateMap <RoleSearchDto, HmrRole>(); CreateMap <RoleDeleteDto, HmrRole>(); CreateMap <RolePermissionDto, HmrRolePermission>(); CreateMap <ServiceAreaDto, HmrServiceArea>(); CreateMap <ServiceAreaNumberDto, HmrServiceArea>(); CreateMap <ServiceAreaUserDto, HmrServiceAreaUser>(); CreateMap <SubmissionObjectDto, HmrSubmissionObject>(); CreateMap <SubmissionObjectCreateDto, HmrSubmissionObject>(); CreateMap <SubmissionRowDto, HmrSubmissionRow>(); CreateMap <SubmissionStatusDto, HmrSubmissionStatu>(); CreateMap <UserDto, HmrSystemUser>(); CreateMap <UserCreateDto, HmrSystemUser>(); CreateMap <UserCurrentDto, HmrSystemUser>(); CreateMap <UserSearchDto, HmrSystemUser>(); CreateMap <UserUpdateDto, HmrSystemUser>(); CreateMap <UserDeleteDto, HmrSystemUser>(); CreateMap <UserRoleDto, HmrUserRole>(); CreateMap <SubmissionStreamDto, HmrSubmissionStream>(); CreateMap <ActivityCodeDto, HmrActivityCode>(); CreateMap <ActivityCodeSearchDto, HmrActivityCode>(); CreateMap <ActivityCodeCreateDto, HmrActivityCode>(); CreateMap <ActivityCodeUpdateDto, HmrActivityCode>(); CreateMap <LocationCodeDto, HmrLocationCode>(); CreateMap <WorkReportTyped, HmrWorkReport>(); CreateMap <RockfallReportTyped, HmrRockfallReport>() .ForMember(dst => dst.ReporterName, opt => opt.MapFrom(src => src.Name)); CreateMap <WildlifeReportTyped, HmrWildlifeReport>(); CreateMap <CodeLookupDto, HmrCodeLookup>(); CreateMap <FeedbackMessageDto, HmrFeedbackMessage>(); CreateMap <FeedbackMessageUpdateDto, HmrFeedbackMessage>(); }
public EntityToModelProfile() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); CreateMap <HmrContractTerm, ContractTermDto>(); CreateMap <HmrDistrict, DistrictDto>(); CreateMap <HmrMimeType, MimeTypeDto>(); CreateMap <HmrParty, PartyDto>(); CreateMap <HmrPermission, PermissionDto>(); CreateMap <HmrRegion, RegionDto>(); CreateMap <HmrRole, RoleDto>(); CreateMap <HmrRole, RoleCreateDto>(); CreateMap <HmrRole, RoleUpdateDto>(); CreateMap <HmrRole, RoleSearchDto>(); CreateMap <HmrRole, RoleDeleteDto>(); CreateMap <HmrRolePermission, RolePermissionDto>(); CreateMap <HmrServiceArea, ServiceAreaDto>(); CreateMap <HmrServiceArea, ServiceAreaNumberDto>(); CreateMap <HmrServiceAreaUser, ServiceAreaUserDto>(); CreateMap <HmrSubmissionObject, SubmissionObjectDto>(); CreateMap <HmrSubmissionObject, SubmissionObjectCreateDto>(); CreateMap <HmrSubmissionObject, SubmissionObjectFileDto>() .ForMember(dst => dst.MimeTypeCode, opt => opt.MapFrom(src => src.MimeType.MimeTypeCode)); CreateMap <HmrSubmissionObject, SubmissionDto>() .ForMember(dst => dst.StagingTableName, opt => opt.MapFrom(src => src.SubmissionStream.StagingTableName)) .ForMember(dst => dst.MimeTypeCode, opt => opt.MapFrom(src => src.MimeType.MimeTypeCode)); CreateMap <HmrSubmissionRow, SubmissionRowDto>(); CreateMap <HmrSubmissionStatu, SubmissionStatusDto>(); CreateMap <HmrSystemUser, UserDto>(); CreateMap <HmrSystemUser, UserCreateDto>(); CreateMap <HmrSystemUser, UserCurrentDto>(); CreateMap <HmrSystemUser, UserSearchDto>(); CreateMap <HmrSystemUser, UserUpdateDto>(); CreateMap <HmrSystemUser, UserDeleteDto>(); CreateMap <HmrSystemUser, UserSearchExportDto>(); CreateMap <BceidAccount, UserBceidAccountDto>(); CreateMap <HmrUserRole, UserRoleDto>(); CreateMap <HmrSubmissionStream, SubmissionStreamDto>(); CreateMap <HmrActivityCode, ActivityCodeDto>(); CreateMap <HmrActivityCode, ActivityCodeSearchDto>(); CreateMap <HmrActivityCode, ActivityCodeCreateDto>(); CreateMap <HmrActivityCode, ActivityCodeUpdateDto>(); CreateMap <HmrActivityCode, ActivityCodeSearchExportDto>() .ForMember(ac => ac.RoadClassRuleName, opt => opt.MapFrom(src => src.RoadClassRuleNavigation.ActivityRuleName)) .ForMember(ac => ac.RoadLengthRuleName, opt => opt.MapFrom(src => src.RoadLengthRuleNavigation.ActivityRuleName)) .ForMember(ac => ac.SurfaceTypeRuleName, opt => opt.MapFrom(src => src.SurfaceTypeRuleNavigation.ActivityRuleName)) .ForMember(ac => ac.LocationCode, opt => opt.MapFrom(src => src.LocationCode.LocationCode)) .ForMember(ac => ac.IsSiteNumRequired, opt => opt.MapFrom(src => (src.IsSiteNumRequired == true) ? "Y" : "N")); CreateMap <HmrLocationCode, LocationCodeDto>(); CreateMap <HmrLocationCode, LocationCodeDropDownDto>(); CreateMap <HmrWorkReport, WorkReportTyped>(); CreateMap <HmrWorkReport, WorkReportExportDto>(); CreateMap <HmrRockfallReport, RockfallReportTyped>() .ForMember(dst => dst.Name, opt => opt.MapFrom(src => src.ReporterName)) .ForMember(dst => dst.McName, opt => opt.MapFrom(src => src.SubmissionObject.Party.BusinessLegalName)); CreateMap <HmrRockfallReport, RockfallReportExportDto>() .ForMember(dst => dst.Name, opt => opt.MapFrom(src => src.ReporterName)) .ForMember(dst => dst.McName, opt => opt.MapFrom(src => src.SubmissionObject.Party.BusinessLegalName)); CreateMap <HmrWildlifeReport, WildlifeReportTyped>(); CreateMap <HmrWildlifeReport, WildlifeReportExportDto>(); CreateMap <HmrCodeLookup, CodeLookupDto>(); CreateMap <HmrFeedbackMessage, FeedbackMessageDto>(); CreateMap <HmrFeedbackMessage, FeedbackMessageUpdateDto>(); CreateMap <HmrActivityCodeRule, ActivityCodeRuleDto>(); CreateMap <HmrServiceAreaActivity, ServiceAreaActivityDto>(); }
public OrganizationProfile() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); //Put your CreateMap... Etc.. here }
public MappingProfile() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); ReplaceMemberName("_ID", "Id"); //FCM Message CreateMap <FCMClient, FCMClientDTO>().ReverseMap(); CreateMap <FCMMessage, FCMMessageDTO>().ReverseMap(); //Advertising CreateMap <AdvertisingDTO, Advertising>().ReverseMap(); CreateMap <AdvertisingCarouselDTO, Advertising>().ReverseMap() .ForMember(dest => dest.ParamId, opt => opt.MapFrom(src => src.ParameterId)); CreateMap <AdvertisingMobileDTO, Advertising>().ReverseMap(); CreateMap <AdvertisingDTO, SpAdMostView_CHT_Result>().ReverseMap(); CreateMap <AdvertisingCarouselDTO, SpAdMostView_CHT_Result>().ReverseMap(); //Profile CreateMap <AspNetUserProfiles, ProfilersDTO>().ReverseMap(); CreateMap <ApplicationUser, ProfileReponse>().ReverseMap(); CreateMap <AspNetRoles, ListRole>().ReverseMap(); CreateMap <AspNetUserProfiles, UpdateAvatarDTO>().ReverseMap(); // Product Category CreateMap <ProductCategory, ProductCategoryDTO>().ReverseMap(); CreateMap <GetMenuProdCateByUser_Result, ProductCategoryDTO>().ReverseMap(); CreateMap <Menu, HomeMenuDTO>().ReverseMap(); CreateMap <GetMenuStatusByUser_Result, HomeMenuDTO>().ReverseMap(); // Recruitment CreateMap <RecruitmentTop, RecruitmentDTO>().ReverseMap(); CreateMap <Recruitment_Search_Result, RecruitmentSearchResultDTO>().ReverseMap(); CreateMap <RecruitmentSearchResultDTO, Recruitment_Search_V2_Result>().ReverseMap(); // Resume CreateMap <Resume_Search_Result, ResumeDTO>().ReverseMap(); CreateMap <Resume_Search_Result, ResumeSearchResultDTO>().ReverseMap(); //Product Brand CreateMap <ProductBrand, BrandDTO>().ReverseMap(); CreateMap <ProductBrand_Search_Result, ProductBrandSearchDTO>().ReverseMap(); CreateMap <BrandElastic, ProductBrandSearchDTO>().ReverseMap(); CreateMap <ProductBrandSearchDetailDTO, ProductBrand>().ReverseMap(); CreateMap <PostProductBrand, ProductBrand>().ReverseMap(); //Product CreateMap <Product_PreProcess_ByCateId_Result, ProductItemByCateIdDTO>().ReverseMap(); CreateMap <Product_Search_Result, ProductSearchResultDTO>().ReverseMap(); CreateMap <ProductElastic, ProductSearchResultDTO>().ReverseMap(); CreateMap <Product, ProductDTO>().ReverseMap(); CreateMap <Product, ProductMostViewDTO>().ReverseMap(); CreateMap <ProductSearchResultDTO, Accesories_Search_Result>().ReverseMap(); CreateMap <ProductSearchResultDTO, Materials_Search_Result>().ReverseMap(); CreateMap <ProductSearchResultDTO, Service_Search_Result>().ReverseMap(); CreateMap <Product, ProductShopManDTO>().ReverseMap(); CreateMap <ProductShopManFilter, ProductFilter>().ReverseMap(); CreateMap <ProductHighLight_Search_Result, ProductSearchResultDTO>().ReverseMap(); CreateMap <TimeLinePostDTO, TimeLinePost_Result>().ReverseMap(); //ProductPicture CreateMap <ProductPicture, ProductPictureDTO>().ReverseMap(); //Article CreateMap <Article, ArticleDTO>().ReverseMap(); CreateMap <ArticleCategoryDTO, ArticleCategory>().ReverseMap(); CreateMap <ArticleVoiceDTO, ArticleVoice>().ReverseMap(); CreateMap <ArticleShortInfo, GetArticleHome_Result>().ReverseMap(); CreateMap <ArticleShortInfo, Article>().ReverseMap(); CreateMap <ArticleShortInfo, Article_Search_Result>().ReverseMap(); CreateMap <VideoShortInfo, Article_Search_Result>().ReverseMap(); // Location CreateMap <LocationDTO, Location>().ReverseMap(); CreateMap <DistrictDTO, District>().ReverseMap(); //Manufacture CreateMap <ProductManufacture_SearchByCategory_Result_DTO, ProductManufacture_SearchByCategory_Result>().ReverseMap(); CreateMap <ProductManufacture_SearchByCategory_Result_DTO, ProductManufacture>().ReverseMap(); //Product Model CreateMap <ProductModel_SearchByCategory_Result_DTO, ProductModel_SearchByCategory_Result>().ReverseMap(); CreateMap <ProductModel, ProductModelDTO>().ReverseMap(); CreateMap <ProductModel_SearchByCategory_Result_DTO, ProductModel>().ReverseMap(); //Recruitment Category // Page Layout CreateMap <ProductCategoryHighLightDTO, PageLayout>().ReverseMap(); // keyword CreateMap <KeywordDTO, MetaKeyword>().ReverseMap(); // IntroScreen //Library CreateMap <LibraryDTO, Library>().ReverseMap(); CreateMap <PostLibrary, Library>().ReverseMap(); //Library Category CreateMap <LibraryCategoryDTO, LibraryCategory>().ReverseMap(); //PartNumber CreateMap <PatchNumberDTO, PatchNumber_SearchByCategory_Result>().ReverseMap(); // CurriculumnVitae CreateMap <CVSearchDTO, CV_Search_Result>().ReverseMap(); //DashBoard CreateMap <DashBoashProductBrandDTO, GetDashBoard_Result>().ReverseMap(); CreateMap <DashBoardBrand, GetDashBoard_Result>().ReverseMap(); CreateMap <DashBoardCustomer, GetDashBoard_Result>().ReverseMap(); CreateMap <DashBoardPost, GetDashBoard_Result>().ReverseMap(); CreateMap <DashBoardOrder, GetDashBoard_Result>().ReverseMap(); CreateMap <DashBoardFinance, GetDashBoard_Result>().ReverseMap(); //CareerCategory CreateMap <CareerCategoryDTO, CareerCategory>().ReverseMap(); //Country CreateMap <CountryDTO, Country>().ReverseMap(); //Unit CreateMap <UnitDTO, Unit>().ReverseMap(); //Accessories //Payment CreateMap <ServicesDTO, HNM.DataNC.ModelsPayment.Services>().ReverseMap(); CreateMap <DiscountConfigDTO, DiscountConfig>().ReverseMap(); CreateMap <OrderDetailDTO, OrderDetail>().ReverseMap(); CreateMap <PostPaymentVAT, PaymentExpVat>().ReverseMap(); //Video Category CreateMap <VideoCategoryDTO, VideoCategory>().ReverseMap(); //Meta Keyword CreateMap <MetaKeywordDTO, MetaKeyword>().ReverseMap(); CreateMap <SubscriptionDTO, Subscription>().ReverseMap(); }
protected override void Configure() { base.Configure(); SourceMemberNamingConvention = new PascalCaseNamingConvention(); DestinationMemberNamingConvention = new LowerUnderscoreNamingConvention(); }
protected override void Configure() { SourceMemberNamingConvention = new LowerUnderscoreNamingConvention(); DestinationMemberNamingConvention = new PascalCaseNamingConvention(); CreateMap <ArticleEntity, Article>(); }