I need to get dates that are greater than or equal to today.
I am using c# LINQ.
Just wondering if the following is the most efficient way of going about doing it:
pr.PgDate >= DateTime.Today
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depends, assuming you are using a linq provider that turns this straight into SQL, then it really comes down to the database. Namely, do you have an index on the column which PgDate comes from? if so, that’s about the most efficient you will get.