Ah, ok.
But is the effect not the same?

On 27 Jul., 11:03, James Gregory <[email protected]> wrote:
> No, why are you doing this: using
> Employee=<newNamespaceOfTheImportetObject>.Employee;
> Instead of just: using newNamesoaceOfTheImportedObject;
>
>
>
> On Mon, Jul 27, 2009 at 10:00 AM, Burgerman <[email protected]> wrote:
>
> > Hi,
> > using the MVP pattern. So all domain objects have to be in a its own
> > layer which can be importet from all the other layer.
>
> > rgds
> > Burgerman
>
> > On 27 Jul., 10:46, James Gregory <[email protected]> wrote:
> > > Why are you using the link? Why not just reference it directly? Does that
> > > work?
>
> > > On Mon, Jul 27, 2009 at 9:41 AM, Burgerman <[email protected]> wrote:
>
> > > > 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?- Zitierten Text ausblenden -
>
> > > - Zitierten Text anzeigen -- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -
--~--~---------~--~----~------------~-------~--~----~
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