I have a solution that has a web project and a class project. The class project happens to be my model and it contains and ADO.Net Entity Data Model. Correspondingly, that class project has a reference to System.Data.Entity. This class project is something that I'd like to reuse so I'd like it to be self contained.
Now, when I add go into my web project and add a reference to my class project, it brings in the dll of the class project. But, it doesn't bring in the System.Data.Entity.dll to my web project. I have some code in my web project that reference Entity businss objects that are in my class project (like my CustomerOrder entity for example). But, the ADO.Net Entity Framework has all business objects that it creates inherit from System.Data.Object.DataClasses.EntityObject.
I get a compile error in my web project when I try to reference my CustomerOrder class because it complains that the type 'system.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not referenced.
So question: do I have to add System.Data.Entity as a direct reference to my web project? Is there any way for my Solution Rebuild to copy not only my class project's dll to my web project, but also it's related dll's like System.Data.Entity so that they're there when the compile tries to compile my web project?
Thanks for any help.
Mark