public Knowledge convert(EntityFrameworkContext context) { var output = new Knowledge(); Mapper.CreateMap<KnowledgeView, Knowledge>(); Mapper.Map<KnowledgeView, Knowledge>(this, output); return output; }
public KnowledgeView(Knowledge input) { Mapper.CreateMap<Knowledge, KnowledgeView>(); Mapper.Map<Knowledge, KnowledgeView>(input, this); }