none
使用entity framework如何查看底层执行的sql RRS feed

答案

  • ObjectQuery<T>.GetTraceString

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    • 已标记为答案 sailuer 2010年7月11日 2:25
    2010年7月8日 18:30
    版主

全部回复

  • ObjectQuery<T>.GetTraceString

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    • 已标记为答案 sailuer 2010年7月11日 2:25
    2010年7月8日 18:30
    版主
  • ObjectQuery<T>.GetTraceString

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP


    如果写的ESQL是带了@aa之类的参数的 返回的T-SQL还是原样的@aa 得不到传入参数之后的实际执行的SQL语句

     

    2010年8月22日 11:48
  • 实际执行的就是带参数的SQL。使用不带参数的SQL的话会让数据库的SQL执行计划缓存实效。

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    2010年8月22日 15:05
    版主