使用3层架构登录 [英] login with 3 tier architecture

查看:64
本文介绍了使用3层架构登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我想使用ado.net 3层架构登录,请帮助我
你能给我一些代码吗?请

Gaurang R.

hello friends,

i want to login with ado.net 3 tier architecture please help me
can u give me some code for it? pls

Gaurang R.

推荐答案



这可能是您的步骤,

1)UI层(您的aspx页面)输入您的凭据.
2)用输入数据填充您的用户实体,然后将其传递给BAL(业务访问层)进行验证.
3)验证您输入的数据是否为空/空/不正确的字符.
4)将其传递给DAL(数据访问层)以检查此数据在数据库中是否可用?
5)返回状态消息并冒泡到UI层.

以上步骤可能会有所不同,具体取决于您的体系结构.

谢谢
-Amit.
Hi,

Here may be your steps,

1) UI Layer (your aspx pages) input your credentials.
2) Fill your User Entity with input data and pass it to BAL (Business Access Layer) for validation.
3) Validate your input data for null/empty/incorrect character.
4) Pass it to DAL(Data Access Layer) for checking if this data is available in database ?
5) Return your status message and bubble up to the UI Layer.

Above steps may change depend on your Architecture.

Thanks
-Amit.



在此博客中,您可以下载一些示例模板

http://jeanpaulva.com/frameworks/ [ ^ ]
hi
In this blog you can download some sample templates

http://jeanpaulva.com/frameworks/[^]


这篇关于使用3层架构登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆