开发者

Entity Framework see SQL sentence when calling stored procedure

开发者 https://www.devze.com 2023-02-24 05:59 出处:网络
Is there a way to see the underlying SQL sentence when executing a stored procedure in Entity Framework (3.5)?

Is there a way to see the underlying SQL sentence when executing a stored procedure in Entity Framework (3.5)?

To use the stored procedure I did from the diagram: Add, Function Import… etc

Thanks

UPDATE 1

I downloaded 'AnjLab Sql Profiler' 开发者_StackOverflow社区from.

http://code.google.com/p/sqlexpressprofiler/downloads/list

And was able to see that the stored procedure is executed correctly.


You can use any type of database profiler - for example SQL profiler for SQL server or you can use either EFTracingProvider or any EF profiler (these tools are usually commercial). Here is whole article about these techniques.

0

精彩评论

暂无评论...
验证码 换一张
取 消