المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Inheritance Problem. Can I do this?



C# Programming
09-16-2009, 11:31 PM
Hi All.

I have a StaffMember class in my app that is inherited by my data access layer to StaffMemberOracleUDT. My reasoning for this is that the OracleUDT version has the data access part needed to convert an Oracle object to something I can use and then I can just send back the StaffMember base to be used in the UI layer.

The problem I'm having is that I need to access the properties in the base class (Name, ID etc) but I also need to over ride these in the inherited class as each property needs a special OracleObjectMappingAttribute added to it that cannot be added to the base as I would then need to reference the Data Access Layer in my UI layer which shouldn't really be done.

Any help is greatly appreciated.

The FoZ