登录模式 [英] login pattern

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

问题描述

嗨!

是否有用于实现登录的标准方法(模式)?我有一个用户表,并且我有一个登录表单提示用户输入用户名和密码.然后,我从表单中获取该信息并搜索表格-结果进入DataTable中.然后,每当我需要有关用户的信息时,我都会搜索数据表.
可以吗?或者还有另一种方法吗? (我肯定有:))
谢谢:)

Hi!

Is there a standard way (a pattern) for login realisation? I have a table of users, and I have a login form that prompts the user for username and password. Then I pick up that information from the form and search through the table - the result goes in a DataTable. Then, whenever I need an information about a user, I search the DataTable. 
Is that OK? Or is there another way to do this? (I'm sure that there is :) )
Thanx :)

推荐答案

针对不同的用法有不同的模式.如果一次只需要有关单个用户的信息,那么拉出DataTable中的所有用户可能会有点过头.根据使用用户信息的频率,您可以考虑创建强类型的数据集或强类型的数据结构.

There are different patterns for different usages. If you only need information about a single user at a time then pulling all of the users in a DataTable might be a bit overkill. Depending upon how often User information is used you may consider creating a strongly typed dataset or strongly typed data structure.


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

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