开发工具与关键技术: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.
Is said to be read back or determine the type of user, student or teacher, or else
if the judgment is the student's account, then read the student's information,
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
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
to read information on Qiaowan.