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