I am creating a solution from scratch, using ASP.NET Web forms C#.
I am concerned about the model objects as I don't want to create duplicate sets of model objects in each layer. What is the best practice for using Model objects in 3 layer architecture in Web Forms
?
The structure I have in mind is as follows:
- UI
- BLL
- DAL
- Model
The Model will contain all the model classes that can be used in each section of the layers. I thought this would be useful as each layer needs access to the model objects. For example:
- UI calls a method in BLL passing in a model object filled with data.
- BLL calls a method in DAL passing through the object which is saved in the database etc.
Thanks