Option 1
We’ll warn you that this will write the XML to your BIN folder, causing the IIS pool to recycle, so run it once, and then comment out the line WriteAllXmlMapping!
var mapper = new ModelMapper();
mapper.AddMappings(typeof(CmsMeta).Assembly.GetTypes());
mapper.CompileMappingForEachExplicitlyAddedEntity().WriteAllXmlMapping();
Option 2
XML , .
var mapper = new ModelMapper();
mapper.AddMappings(typeof(CmsMeta).Assembly.GetTypes());
var mapping = mapper.CompileMappingForAllExplicitlyAddedEntities();
var mappingXml = mapping.AsString();
, .