private void addMappings()
        {
            var ass = Assembly.Load(TestAssembly);

            foreach (var mapping in Mappings)
            {
                Cfg.AddResource(TestAssembly + "." + mapping, ass);
            }
        }
Ejemplo n.º 2
0
		protected override void Configure(Cfg.Configuration configuration)
		{
			var assembly = GetType().Assembly;
			string mappingNamespace = GetType().Namespace;
			foreach (var resource in assembly.GetManifestResourceNames())
			{
				if (resource.StartsWith(mappingNamespace) && resource.EndsWith(".hbm.xml"))
				{
					configuration.AddResource(resource, assembly);
				}
			}
		}