Can someone tell me how i would check if the current value is less than the stored value in this where claus?

Aaron soggi 246 Reputation points
2022-05-19T09:55:43.347+00:00

code:

var stats = context.StatQueue.Where(x => x.QueueId == queueId && x.StartDateTime == startDateTime).ToList();

what I need to do is check if the current value of "MinLoggedIn" (x.MinLoggedIn) is less than stored value.

Can anyone help with this?

Thanks

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,808 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,306 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 112.5K Reputation points
    2022-05-19T09:59:15.067+00:00

    Try this:

    var stats = context.StatQueue.Where(x => x.QueueId == queueId && x.StartDateTime == startDateTime && x.MinLoggedIn < storedValue).ToList();
    
    1 person found this answer helpful.
    0 comments No comments