你好。我想将 LINQ 查询转换为 SQL 查询。我是 LINQ 的新手。有人可以帮我转换吗?这是我的 Linq 代码:
var val = from AppDetails in db.ApplicantProfile
join PRQDetails in db.PrqcreatedInformation on AppDetails.ApplicantProfileId equals PRQDetails.ApplicantId
where PRQDetails.ConsiderForPrq == true
orderby PRQDetails.Entrydate ascending
select new
{
Prefix = AppDetails.Prefix.Name,
FirstName = AppDetails.FirstName,
MiddleName = AppDetails.MiddleName,
LastName = AppDetails.LastName,
ArdisPersonId = AppDetails.ArdisPersonId,
ApplicantProfileId = AppDetails.ApplicantProfileId,
PRQEntryDate = PRQDetails.Entrydate,
PrqUpdated = PRQDetails.PrqUpdated,
IsSendtoARDs = PRQDetails.IsSendtoArds,
DataSentToARDis=PRQDetails.DataSentToArdis,
DataSentToARDisBy=PRQDetails.DataSentToArdisBy
};