Beispiel #1
0
 private bool IsMatches(string userName, string password)
 {
     using (LibNetEntities db = new LibNetEntities())
     {
         return(db.AdminInfo.Any(x => x.AdminLogin == userName && x.AdminPassword == password));
     }
 }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     dbContext = new LibNetEntities();
 }
Beispiel #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     dbContext = new LibNetEntities();
     ListView1.InsertItemPosition = InsertItemPosition.LastItem;
 }