Read the information


开发工具与关键技术:vs与jquery

作者:戴怡斌 

撰写时间:2019年6月3日

Read information, what information is read, it is literally read certain information (you need). Read the information in our eyes is a programmer to read data about the same.

General information can be read and used with queries, and query information, there are three (I knew only three).

The first .Single (); single query data, when there is no data or a plurality of data will trigger an exception

The second .Tolist (); and a plurality of data query into list

The third .Count (); inquire how many data

Will read and cookie, session-related, but today only said reading

I read it as an example to the login screen, login screen I believe many people know the identity of the word, so each registrant will have one of their own identity, such as a school student, a substitute teacher, administrator, principal, etc. this time login identity is very important.

You start to read the information a user to read information, which the user can use some.
Here Insert Picture Description
Is said to be read back or determine the type of user, student or teacher, or else
Here Insert Picture Description
if the judgment is the student's account, then read the student's information,
Here Insert Picture Description
strUserTypeClass.Trim () == means "1" 1 student, 2 is a teacher, an administrator is 3

If it is determined that the teacher's account, then read the teacher's information
Here Insert Picture Description

If there are two that are not, or there is no user, and then back to the login screen, re-enter the type of user
Here Insert Picture Description
to read information on Qiaowan.

Guess you like

Origin blog.csdn.net/weixin_44561520/article/details/91356249