Esempio n. 1
0
 internal static void Register()
 {
     Mapper.CreateMap <eidss.openapi.contract.PersonReference, eidss.model.Schema.PersonLookup>()
     .ConstructUsing(context =>
                     AutoConverter.Construct <eidss.openapi.contract.PersonReference, eidss.model.Schema.PersonLookup>
                         (context, (s, d) => s.RecordID == d.idfPerson, s => s.RecordID))
     .ForMember(p => p.idfOffice, e => e.Ignore())
     .ForMember(p => p.idfPerson, e => e.Ignore())
     .ForMember(p => p.intRowStatus, e => e.Ignore())
     .ForMember(p => p.FullName, e => e.Ignore())
     .ForMember(p => p.Organization, e => e.Ignore())
     .ForMember(p => p.Position, e => e.Ignore())
     .ForMember(p => p.strFamilyName, e => e.Ignore())
     .ForMember(p => p.strFirstName, e => e.Ignore())
     .ForMember(p => p.intHACode, e => e.Ignore())
     .ForMember(p => p.blnHuman, e => e.Ignore())
     .ForMember(p => p.blnVet, e => e.Ignore())
     .ForMember(p => p.blnLivestock, e => e.Ignore())
     .ForMember(p => p.blnAvian, e => e.Ignore())
     .ForMember(p => p.blnVector, e => e.Ignore())
     .ForMember(p => p.blnSyndromic, e => e.Ignore())
     .ForMember(p => p.Parent, e => e.Ignore())
     .ForMember(p => p.ReadOnly, e => e.Ignore())
     .ForMember(p => p.NotifyChanges, e => e.Ignore())
     .ForMember(p => p.Environment, e => e.Ignore())
     ;
     Mapper.CreateMap <eidss.model.Schema.PersonLookup, eidss.openapi.contract.PersonReference>()
     .ForMember(d => d.RecordID, opt => opt.MapFrom(s => s.idfPerson))
     .ForMember(d => d.Name, opt => opt.MapFrom(s => s.FullName))
     .ForMember(d => d.OrganizationRecordID, opt => opt.MapFrom(s => s.idfOffice))
     ;
 }
Esempio n. 2
0
 internal static void Register()
 {
     Mapper.CreateMap <eidss.openapi.contract.Reference, eidss.model.Schema.BaseReference>()
     .ConstructUsing(context =>
                     AutoConverter.Construct <eidss.openapi.contract.Reference, eidss.model.Schema.BaseReference>
                         (context, (s, d) => s.RecordID == d.idfsBaseReference, s => s.RecordID))
     .ForMember(p => p.idfsBaseReference, e => e.Ignore())
     .ForMember(p => p.idfsReferenceType, e => e.Ignore())
     .ForMember(p => p.strBaseReferenceCode, e => e.Ignore())
     .ForMember(p => p.name, e => e.Ignore())
     .ForMember(p => p.strDefault, e => e.Ignore())
     .ForMember(p => p.intHACode, e => e.Ignore())
     .ForMember(p => p.intOrder, e => e.Ignore())
     .ForMember(p => p.intRowStatus, e => e.Ignore())
     .ForMember(p => p.blnSystem, e => e.Ignore())
     .ForMember(p => p.Parent, e => e.Ignore())
     .ForMember(p => p.ReadOnly, e => e.Ignore())
     .ForMember(p => p.NotifyChanges, e => e.Ignore())
     .ForMember(p => p.Environment, e => e.Ignore())
     ;
     Mapper.CreateMap <eidss.model.Schema.BaseReference, eidss.openapi.contract.Reference>()
     .ForMember(d => d.RecordID, opt => opt.MapFrom(s => s.idfsBaseReference))
     .ForMember(d => d.Name, opt => opt.MapFrom(s => s.name))
     ;
 }
Esempio n. 3
0
 internal static void Register()
 {
     Mapper.CreateMap <eidss.openapi.contract.Diagnosis, eidss.model.Schema.DiagnosisLookup>()
     .ConstructUsing(context =>
                     AutoConverter.Construct <eidss.openapi.contract.Diagnosis, eidss.model.Schema.DiagnosisLookup>
                         (context, (s, d) => s.RecordID == d.idfsDiagnosis, s => s.RecordID))
     .ForMember(p => p.idfsDiagnosis, e => e.Ignore())
     .ForMember(p => p.name, e => e.Ignore())
     .ForMember(p => p.strIDC10, e => e.Ignore())
     .ForMember(p => p.strOIECode, e => e.Ignore())
     .ForMember(p => p.HACode, e => e.Ignore())
     .ForMember(p => p.intHACode, e => e.Ignore())
     .ForMember(p => p.idfsUsingType, e => e.Ignore())
     .ForMember(p => p.blnZoonotic, e => e.Ignore())
     .ForMember(p => p.strZoonotic, e => e.Ignore())
     .ForMember(p => p.idfsDiagnosisGroup, e => e.Ignore())
     .ForMember(p => p.strDiagnosesGroupName, e => e.Ignore())
     .ForMember(p => p.intRowStatus, e => e.Ignore())
     .ForMember(p => p.intOrder, e => e.Ignore())
     .ForMember(p => p.UsingTypeName, e => e.Ignore())
     .ForMember(p => p.Parent, e => e.Ignore())
     .ForMember(p => p.ReadOnly, e => e.Ignore())
     .ForMember(p => p.NotifyChanges, e => e.Ignore())
     .ForMember(p => p.Environment, e => e.Ignore())
     ;
     Mapper.CreateMap <eidss.model.Schema.DiagnosisLookup, eidss.openapi.contract.Diagnosis>()
     .ForMember(d => d.RecordID, opt => opt.MapFrom(s => s.idfsDiagnosis))
     .ForMember(d => d.DiagnosisName, opt => opt.MapFrom(s => s.name))
     .ForMember(d => d.Aggregate, opt => opt.ResolveUsing(s => s.idfsUsingType == (long)DiagnosisUsingTypeEnum.AggregatedCase))
     .ForMember(d => d.AccessoryCode, opt => opt.MapFrom(s => s.intHACode))
     .ForMember(d => d.IDC10Code, opt => opt.MapFrom(s => s.strIDC10))
     ;
 }
Esempio n. 4
0
 internal static void Register()
 {
     Mapper.CreateMap <eidss.openapi.contract.GisReference, eidss.model.Schema.SettlementLookup>()
     .ConstructUsing(context =>
                     AutoConverter.Construct <eidss.openapi.contract.GisReference, eidss.model.Schema.SettlementLookup>
                         (context, (s, d) => s.RecordID == d.idfsSettlement, s => s.RecordID))
     .ForMember(p => p.idfsSettlement, e => e.Ignore())
     .ForMember(p => p.strSettlementName, e => e.Ignore())
     .ForMember(p => p.idfsRayon, e => e.Ignore())
     .ForMember(p => p.idfsRegion, e => e.Ignore())
     .ForMember(p => p.idfsCountry, e => e.Ignore())
     .ForMember(p => p.strSettlementExtendedName, e => e.Ignore())
     .ForMember(p => p.strSettlementType, e => e.Ignore())
     .ForMember(p => p.strCountryName, e => e.Ignore())
     .ForMember(p => p.strRegionExtendedName, e => e.Ignore())
     .ForMember(p => p.strRayonExtendedName, e => e.Ignore())
     .ForMember(p => p.intRowStatus, e => e.Ignore())
     .ForMember(p => p.Parent, e => e.Ignore())
     .ForMember(p => p.ReadOnly, e => e.Ignore())
     .ForMember(p => p.NotifyChanges, e => e.Ignore())
     .ForMember(p => p.Environment, e => e.Ignore())
     ;
     Mapper.CreateMap <eidss.model.Schema.SettlementLookup, eidss.openapi.contract.GisReference>()
     .ForMember(d => d.RecordID, opt => opt.MapFrom(s => s.idfsSettlement))
     .ForMember(d => d.Name, opt => opt.MapFrom(s => s.strSettlementName))
     ;
 }
Esempio n. 5
0
 private HerdConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 6
0
 private RegionConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 7
0
 private PatientListItemConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 8
0
 private InitialCaseClassificationConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 9
0
 private SpeciesConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 10
0
 private SettlementConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 11
0
 private PensideTestConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 12
0
 private FarmRootConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 13
0
 private VetCaseListItemConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 14
0
 private TestResultConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 15
0
 private HumanCaseConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 16
0
 private AnimalAgeConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 17
0
 private CaseTestConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 18
0
 private PatientConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 19
0
 private VetCaseConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 20
0
 private CaseTestValidationConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 21
0
 private BaseReferenceConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 22
0
 private GeoLocationConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 23
0
 private OrganizationPersonConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 24
0
 private AddressConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 25
0
 private FarmListItemConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 26
0
 private RayonConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 27
0
 private OrganizationListItemConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 28
0
 private CountryConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 29
0
 private HumanCaseListItemConverter()
 {
     AutoConverter.Nop();
 }
Esempio n. 30
0
 private FarmPanelConverter()
 {
     AutoConverter.Nop();
 }