ToString1
asked on
linq query to return object with parameter
linq query to get highest id with datetime query
I need a linq query that returns a QuestionAnswer object with the datetimevalue given the previousAttemptID
Here is database table called "QuestionAnswers"
ID (int)
previousAttemptID (int)
userID (int)
questionID (int)
anwerID (int)
dateAnswered (datetime)
So something like
QuestionAnswer = db.QuestionAnswers.Where(r => r.previousAttemptID == previousAttemptID) // then get the record with the max datetime stampe (field dateAnswered)
I need a linq query that returns a QuestionAnswer object with the datetimevalue given the previousAttemptID
Here is database table called "QuestionAnswers"
ID (int)
previousAttemptID (int)
userID (int)
questionID (int)
anwerID (int)
dateAnswered (datetime)
So something like
QuestionAnswer = db.QuestionAnswers.Where(r
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.