Exemplo n.º 1
0
 public DbImportService(IConspectorContext context)
 {
     _context = context;
     var config = new MapperConfiguration(cfg =>
     {
         cfg.CreateMap<IdeaDto, Idea>();
         cfg.CreateMap<ParticleDto, Particle>();
         cfg.CreateMap<RelationDto, Relation>();
         cfg.CreateMap<TagDto, Tag>();
         cfg.CreateMap<ReferenceDto, Reference>();
         cfg.CreateMap<CommentDto, Comment>();
         cfg.CreateMap<SettingDto, Setting>();
         cfg.CreateMap<HeaderDto, Header>();
     });
     _map = config.CreateMapper();
 }
Exemplo n.º 2
0
 public DbInteropService(IConspectorContext context)
 {
     _context = context;
 }