コード例 #1
0
 public User GetUserByIdentifier(string identifier)
 {
     if (db != null)
     {
         db.Dispose();
     }
     db = new EasyGradeManagerContext();
     return((from u in db.Users
             where u.Identifier.Equals(identifier)
             select u).FirstOrDefault());
 }