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(); }
public DbInteropService(IConspectorContext context) { _context = context; }