“Cannot call methods on DateTime”, and other limitations

后端 未结 5 1550
离开以前
离开以前 2020-12-30 11:32

Does anyone know of a definitive list of LINQ to SQL query limitations that are not trapped at compile time, along with (where possible) workarounds for the limitations?

5条回答
  •  悲哀的现实
    2020-12-30 12:23

    Marc Gravell's answer is comprehensively right.

    I just wanted to add this detail for Date Logic (and string comparisons). Since you are using LinqToSql, you can take advantage of the SqlMethods, to do those things you are used to doing in the database.

提交回复
热议问题