ASP.NET Forums N layer architecture implementation

xiaoxiao2021-03-05  24

How to implement an N-layer architecture, complete the modified password in Forums:

Page layer: ChangePassword.aspx, mainly using masterpage: ~ / themes / masterpage.ascx to build a page of Layout, the specific function is implemented by the control.

Corresponding to the corresponding (compound) control: aspnetforums.controls.changepassword, inherit self-control SkinnedforumWebControl, mainly implement SKIN, because SKIN can be customized, generate a page element that modifies the password: Enter the TextBox, submit button, etc., generate the corresponding event, Call the specific method of the logical layer.

Class of logic layers: ASPNETforums.comPonents.user Provides a Change Password to process ChangePassword (String PASSWORD, STRING NewPassword, String Salt, Bool IsRequestFromPastport), which calls the data layer database operation to realize the true modification password.

The class: aspnetforums.components.forumsDataProvider is a class method UserChangePassword because it is a Abstract class, here is a sub-class ASPNETFORUMS.DATA.SQLDATAPROVIDER is implemented. It is mainly to achieve multiple types of databases.

转载请注明原文地址:https://www.9cbs.com/read-37130.html

New Post(0)