The following throws an error:
public FieldViewer GetFieldViewByFieldIDIPAndUserByDate( int fieldID, string ip, string userID, DateTime date )
{
return this.
Try this to find the difference in minutes:
EntityFunctions.DiffMinutes(date, x.Viewer.CreatedAt) >= 10
Sources:
How to subtract EntityFunctions.TruncateTime from custom time
EntityFunctions.DiffMinutes
As this api is now obsolete (thanks for pointing this out @Jimmyt1988), instead use: DbFunctions.DiffMinutes