How to Select Min and Max date values in Linq Query

后端 未结 3 1810
离开以前
离开以前 2020-12-16 09:11

I am moving from SQL to Linq and I need some help. I am testing both Linq-to-SQL and Linq-to-Entities. I want to try both to decide which one suits me best. Your help is app

3条回答
  •  無奈伤痛
    2020-12-16 09:49

    dim mydate = from cv in mydata.t1s
      select cv.date1 asc
    
    datetime mindata = mydate[0];
    

提交回复
热议问题