コード例 #1
0
        static MapperFactoryProvider()
        {
            ClassMapperFactory             = new ClassMapperFactory();
            ClassToDictionaryMapperFactory = new ClassToDictionaryMapperFactory();
            DictionaryToClassMapperFactory = new DictionaryToClassMapperFactory();

            ListSourceMapperFactory = new ListSourceMapperFactory();
            CollectionMapperFactory = new CollectionMapperFactory();
            DataReaderMapperFactory = new DataReaderMapperFactory();
            DataRowMapperFactory    = new DataRowMapperFactory();
            DataTableMapperFactory  = new DataTableMapperFactory();
            //EnumMapperFactory = new EnumMapperFactory();
            //NullableMapperFactory = new NullableMapperFactory();
            PrimitiveMapperFactory     = new PrimitiveMapperFactory();
            TypeConverterMapperFactory = new TypeConverterMapperFactory();
            //StringMapperFactory = new StringMapperFactory();
            //FlagsEnumMapperFactory = new FlagsEnumMapperFactory();
            DictionaryMapperFactory = new DictionaryMapperFactory();
        }
コード例 #2
0
        static MapperFactoryProvider()
        {
            ClassMapperFactory = new ClassMapperFactory();
            ClassToDictionaryMapperFactory = new ClassToDictionaryMapperFactory();
            DictionaryToClassMapperFactory = new DictionaryToClassMapperFactory();

            ListSourceMapperFactory = new ListSourceMapperFactory();
            CollectionMapperFactory = new CollectionMapperFactory();
            DataReaderMapperFactory = new DataReaderMapperFactory();
            DataRowMapperFactory = new DataRowMapperFactory();
            DataTableMapperFactory = new DataTableMapperFactory();
            //EnumMapperFactory = new EnumMapperFactory();
            //NullableMapperFactory = new NullableMapperFactory();
            PrimitiveMapperFactory = new PrimitiveMapperFactory();
            TypeConverterMapperFactory = new TypeConverterMapperFactory();
            //StringMapperFactory = new StringMapperFactory();
            //FlagsEnumMapperFactory = new FlagsEnumMapperFactory();
            DictionaryMapperFactory = new DictionaryMapperFactory();
        }