Beispiel #1
0
        public Mapper(MapperTypeEnum mapperType)
        {
            switch (mapperType)
            {
            case MapperTypeEnum.ConventionBasedMapper:
                _mapper = new ConventionMapper <DatabaseClass, DtoClass>();
                break;

            case MapperTypeEnum.SameNamesMapper:
                _mapper = new SameNamesMapper <DatabaseClass, DtoClass>();
                break;

            default:
                break;
            }
        }
Beispiel #2
0
 public Utilities(MapperTypeEnum mapperType)
 {
     _mapperType = mapperType;
 }