What is the method for comparing parameters in one SQL query?
i tried so, but error(The variable "ce" of type "Microsoft.Xrm.Sdk.Entity" is referenced from the scope "", but it is not defined):
var query = from ce in orgSvcContext.CreateQuery("account")
where ce.GetAttributeValue<DateTime>("answer_fact_date") < ce.GetAttributeValue<DateTime>("deadline")
select new
{
id_record = ce.Id,
};
foreach (var entity in query)
{
}