C# Design Layout/Patterns
- by wpfwannabe
I am still fairly new to C# and I am trying to decide the best way to structure a new program. Here is what I want to do and I would like feed back on my idea.
Presentation Layer
Business Layer (Separate Class Library)
Data Layer (Separate Class Library)
Model Layer (Separate Class Library)
What I am struggling with is if it is ok to have the classes in the Data Layer and Business Layer inherit from the types I define in Model Layer. This way I can extended the types as needed in my Business Layer with any new properties I see fit. I might not use every property from the Model type in my Business Layer class but is that really a big deal? If this isn't clear enough I can try and put together an example.