Business Layer in 3 tier Architecture

后端 未结 5 1929
自闭症患者
自闭症患者 2020-12-02 17:54

I went for an interview, and was asked to show up my Business layer architecture. I have some idea about 3 tier architecture but really no idea, to what to write in front of

5条回答
  •  天命终不由人
    2020-12-02 18:38

    3 Tier is as follows,

    1. Your presentation in one layer.
    2. Your application logic in other layer -- called business layer.
    3. Your Data Access classes in third layer. -- called Data Layer.

    Webforms will be presentation layer So for employee class doing anything in ASP.Net code behind file can be considered business layer per my understanding as you are applying business rules using if/else and so forth. Data Access classes in App_Code folder would be Data Layer.

    In case of desktop apps form designs would be presentation layer, form code will be business layer and anything related to accessing database would be data layer.

提交回复
热议问题