Performance of Linq to Entities vs ESQL

前端 未结 6 847
情歌与酒
情歌与酒 2020-12-04 20:08

When using the Entity Framework, does ESQL perform better than Linq to Entities?

I\'d prefer to use Linq to Entities (mainly because of the strong-

6条回答
  •  日久生厌
    2020-12-04 21:01

    ESQL can also generate some particularly vicious sql. I had to track a problem with such a query that was using inherited classes and I found out that my pidly-little ESQL of 4 lines got translated in a 100000 characters monster SQL statetement.

    Did the same thing with Linq and the compiled code was much more managable, let's say 20 lines of SQL.

    Plus, what other people mentioned, Linq is strongly type, although very annoying to debug without the edit and continue feature.

    AD

提交回复
热议问题