Querying for one item

If we had to get a game session, we would use the following code:

using (var context = new GameDbContext())
{
var gameSession = context.GameSessions
.SingleOrDefault
(g => g.GameSessionId == Guid.Parse("002e6431-3eb5-
4d98-b3d9-3263490ce7c0"));
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.3.175