C# Design Layout/Patterns
Posted
by wpfwannabe
on Stack Overflow
See other posts from Stack Overflow
or by wpfwannabe
Published on 2010-05-23T03:17:34Z
Indexed on
2010/05/23
3:20 UTC
Read the original article
Hit count: 312
c#
|design-patterns
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.
© Stack Overflow or respective owner