Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

SQL Statement Where DateTime Equals GETDate()...

$
0
0

How do I convert the following statement into a C# MVC Linq statement?

SELECT * FROM tablename

WHERE RecordID = 200 AND EmployeeID = 3 AND Cast(CreatedDate as DATE) = (CAST(GETDATE() AS DATE)

It works in SQL but unable to compose in LINQ, please help


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>