且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

登录模式

更新时间:2022-10-31 13:43:01

针对不同的用法有不同的模式.如果一次只需要有关单个用户的信息,那么拉出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.