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

How to write equivalen code with EF linq instead of sql

$
0
0

please see the sql and tell me how could i achieve the same with EF and linq

with tmp(plant_date)as(select cast('20170101'as datetime)union allselect plant_date +1from tmpwhere plant_date <'20170120')select plant_date, amtfrom  tmp JOIN withyourtable ON ...
option (maxrecursion 0)

please show me with code sample to achieve it with EF and LINQ query.

thanks


Viewing all articles
Browse latest Browse all 1698

Trending Articles



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