Hi,
I want to access a simple Object via Fluent NHibernat. This works good
as long as the domain object is in the SAME procect as the program.

So, this works fine:

   ...
   using Employee=<namespaceOfTheSameProject>.Employee;
   namespace <namespaceOfTheSameProject>.NUnitTest
   {
   ...
   Mappings(m => m.FluentMappings.AddFromAssemblyOf<Employee>())
   ...
   }


But if I remove the entity object (Employee) from that project into
another object and import the domain object by using a link to the DLL
it doesn't work anymore!

   ...
   using Employee=<newNamespaceOfTheImportetObject>.Employee;
   ...

So I get an exception during to try creating a new Employee item like
this:

    NHibernate.MappingException: Unknown entity class:
<newNamespaceOfTheImportetObject>.Employee

Can anyone tell me what is wrong?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to