【发布时间】:2010-10-13 05:25:24
【问题描述】:
将 LINQ 查询的 SQL 跟踪显示到 Entity Framework 3.5 的最佳方式?
我正在使用 ASP.net 和 EF 3.5。
Dim dbo As Web.Portal.RBMEntities = New Web.Portal.RBMEntities
Dim Query = From RoleAllocations In dbo.RoleAllocations Where RoleAllocations.user_id = _ID And RoleAllocations.expire_date > Today Select RoleAllocations
' Console write the SQL trace???
谢谢!
【问题讨论】:
-
SQL tracing LINQ to Entities 的可能重复项
标签: asp.net sql entity-framework