예제 #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));
     }
 }
예제 #2
0
파일: BookList.aspx.cs 프로젝트: alloya/db
 protected void Page_Load(object sender, EventArgs e)
 {
     dbContext = new LibNetEntities();
 }
예제 #3
0
파일: UserList.aspx.cs 프로젝트: alloya/db
 protected void Page_Load(object sender, EventArgs e)
 {
     dbContext = new LibNetEntities();
     ListView1.InsertItemPosition = InsertItemPosition.LastItem;
 }