What pattern is layered architecture in asp.net ?
Posted
by haansi
on Stack Overflow
See other posts from Stack Overflow
or by haansi
Published on 2010-06-09T06:17:26Z
Indexed on
2010/06/09
7:42 UTC
Read the original article
Hit count: 226
Hi,
I am a asp.net developer and don't know much about patterns and architecture. I will very thankful if you can please guide me here.
In my web applications I use 4 layers.
Web site project (having web forms + code behind cs files, user controls + code behind cs files, master pages + code behind cs files)
CustomTypesLayer a class library (having custom types, enumerations, DTOs, constructers, get, set and validations)
BusinessLogicLayer a class library (having all business logic, rules and all calls to DAL functions)
DataAccessLayer a class library( having just classes communicating to database.)
-My user interface just calls BusinessLogicLayer. BusinessLogicLayer do proecessign in it self and for data it calls DataAccessLayer funtions.
-Web forms do not calls directly DAL.
-CustomTypesLayer is shared by all layers.
Please guide me is this approach a pattern ? I though it may be MVC or MVP but pages have there code behind files as well which are confusing me.
If it is no patren is it near to some patren ? pleaes guide
thanks
© Stack Overflow or respective owner