public void ShowSingleXmlMappingWithCoolAppliers() { var domainMapper = new CoolDomainMapper(); var entities = new List<Type>(); entities.AddRange(ModuleMappingUtil.RunModuleMapping<NaturalnessModuleMapping>(domainMapper.DomainDefinition, domainMapper.Mapper)); var document = Serialize(domainMapper.Mapper.CompileMappingFor(entities)); File.WriteAllText("MyMapping.hbm.xml", document); Console.Write(document); }
public void ShowSingleXmlMappingWithCoolAppliers() { var domainMapper = new CoolDomainMapper(); var entities = new List <Type>(); entities.AddRange(ModuleMappingUtil.RunModuleMapping <NaturalnessModuleMapping>(domainMapper.DomainDefinition, domainMapper.Mapper)); var document = Serialize(domainMapper.Mapper.CompileMappingFor(entities)); File.WriteAllText("MyMapping.hbm.xml", document); Console.Write(document); }