Showing posts with label Join Query using Entity FrameWork. Show all posts
Showing posts with label Join Query using Entity FrameWork. Show all posts

Saturday, September 12, 2015

Join Query using Entity FrameWork

var customUser = (from u in context.Users
            join pr in context.PasswordRecoveries on u.Id equals pr.userId
            where pr.url == token && pr.requestDateTime.AddHours(12) <DateTime.Now
            select u).FirstOrDefault();