Problem using WCF Domain Service in multiple modules

Topics: Prism v2 - Silverlight 3
Jan 21, 2010 at 1:55 PM


I'm using Silverlight 3 - Prism 2 - WCF Ria Services.

I defined a domain service / entity framework class in the web application, and I use the same domain service in multiple prism modules.

When I'm trying to query de database, for instance

   myContext.Load<myEntity>(myContext.GetMyEntities(), true).AllEntities;   (I tryed every possible syntax, I think it isn't the problem)

I receive an error message saying that myWebApp.myEntity is defined in multiples modules.

What I'm doing wrong?  Can't I use the same domain service in multiples modules?

Thanks in advance