Save Entity Framework Linq Query to database

后端 未结 4 647
逝去的感伤
逝去的感伤 2020-12-17 05:28

I was wondering if we can convert a Linq Query on the Entity Framework and save the query to the database by converting it to an Expression Tree and Serializing. Can someone

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-17 05:35

    You may want to consider using Entity SQL rather than LINQ in this case. Entity SQL is a string query that works against your EF conceptual model rather than directly against the database.

提交回复
热议问题