public void ShowSingleXmlMappingWithDearDbaAppliers()
        {
            var domainMapper = new DearDbaDomainMapper();
            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);
        }
Ejemplo n.º 2
0
        public void ShowSingleXmlMappingWithDearDbaAppliers()
        {
            var domainMapper = new DearDbaDomainMapper();
            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);
        }