Hi Chris ,
Let me rephrase my question one more time.
I have ParentBusiness.dll , BusinessData.dll contains class
BaseBusiness.cs and ParentData.dll. contains class BaseData.cs I
created new Solutions , And with ChildBusinss and ChildData Layer .
Child Business contains reference of ParentBusiness.dll, and Child
Data layer contains reference of ParentDataLayer .
ChildData contains a Class which is inhereted from BaseData.cs
(ParentData.dll) . In this case , data Layer is building
successfully , But when i try to call a Method of Child Data class
from ChildBusiness , it thorw compilcation error as
"The type ParentData.basedata' is defined in an assembly that is not
referenced. You must add a reference to assembly"
error CS0012: The type ParentData.BaseDatai s defined in an assembly
that is not referenced. You must add a reference to assembly
'ParentData.dll, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=null'.
Hope so this will help to understand the problem
Thanks in Advance
On Oct 1, 7:46 am, "Christof Nordiek" <c...@nospam.dewrote:
Hima79ash,
your text is a little bit confusing
I guess you have a class in sample_dl wich inherits from a class frm_data in
assembly frm_data.
This inheriting class is referenced in sample_bl. For this to work in C# the
sample_bl has also to reference frm_data. This is, because the public
members of the base class are also public members of the inheriting class.
So the compiler has to know the base-class when referencing the derived
class.
In your case I would recommend to redesign your layer-concept, so that the
public classes of the business layer do not derive from the classes of the
data layer but encapsulate them
Christof