コード例 #1
0
ファイル: Item.cs プロジェクト: youtpout/LeagueOfLegendsAPI
        internal static void CreateMap(AutoMapperService autoMapperService)
        {
            Models.Gold.CreateMap(autoMapperService);
            Models.Image.CreateMap(autoMapperService);
            MetaData.CreateMap(autoMapperService);
            BasicDataStats.CreateMap(autoMapperService);

            autoMapperService.CreateApiModelMapWithInterface <ItemDto, Item, IItem>();
        }
コード例 #2
0
        internal static void CreateMap(AutoMapperService autoMapperService)
        {
            Models.Gold.CreateMap(autoMapperService);
            Models.Image.CreateMap(autoMapperService);
            Models.Rune.RuneType.CreateMap(autoMapperService);
            BasicDataStats.CreateMap(autoMapperService);

            CreateMap <Rune>(autoMapperService);
            CreateMap <IRune>(autoMapperService).As <Rune>();
        }