Exemple #1
0
        private static void CreateAddressMappings(IMapperConfigurationExpression config)
        {
            config.CreateServiceModelMap <AddressModel, Address>();

            config.CreateModelMap <Address, AddressModel>()
            .MapReference(x => x.Country, x => x.Country);
        }
 private static void CreateCountryMappings(IMapperConfigurationExpression config)
 {
     config.CreateServiceModelMap <CountryModel, Country>();
     config.CreateModelMap <Country, CountryModel>();
 }
 private static void CreateProjectMappings(IMapperConfigurationExpression config)
 {
     config.CreateServiceModelMap <ProjectModel, Project>();
     config.CreateModelMap <Project, ProjectModel>()
     .MapReference(x => x.Customer, x => x.Customer);
 }
Exemple #4
0
 private static void CreateCustomerMappings(IMapperConfigurationExpression config)
 {
     config.CreateServiceModelMap <CustomerModel, Customer>();
     config.CreateModelMap <Customer, CustomerModel>();
 }