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);
        }
示例#2
0
        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);
        }