Hi,
I've created a little function that should add the MappingRules from code instead of from the configuration. It does not work however. What is missing? Here is the code:
private static void AddMappingRule(DomainConfiguration configuration, string assemblyName, string space, string schema)
{
System.Reflection.Assembly assembly = System.Reflection.Assembly.Load(assemblyName);
configuration.Types.Assemblies.Add(assembly);
configuration.MappingRules.Add(new MappingRule(assembly, space, null, schema));
}
AddMappingRule(configuration, "Projecten.Model", "Projecten.Model.Entities", "Projecten");
AddMappingRule(configuration, "Fortrus.Reporting.Model", "Fortrus.Reporting.Model.Entities", "Reporting");
Regards
Paul
asked
Aug 08 '13 at 09:10
Paul Sinnema
261●88●88●96