Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
EntityFrameworkQueryableExtensions.ToQueryString(IQueryable) Method
Definition
- Namespace:
- Microsoft.EntityFrameworkCore
- Assembly:
- Microsoft.EntityFrameworkCore.dll
- Package:
- Microsoft.EntityFrameworkCore v10.0.0
- Package:
- Microsoft.EntityFrameworkCore v5.0.0
- Package:
- Microsoft.EntityFrameworkCore v6.0.0
- Package:
- Microsoft.EntityFrameworkCore v7.0.0
- Package:
- Microsoft.EntityFrameworkCore v8.0.0
- Package:
- Microsoft.EntityFrameworkCore v9.0.0
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates a string representation of the query used. This string may not be suitable for direct execution and is intended only for use in debugging.
public static string ToQueryString(this System.Linq.IQueryable source);
static member ToQueryString : System.Linq.IQueryable -> string
<Extension()>
Public Function ToQueryString (source As IQueryable) As String
Parameters
- source
- IQueryable
The query source.
Returns
The query string for debugging.
Exceptions
source is null.
Remarks
This method is only typically supported by queries generated by Entity Framework Core.
See Viewing SQL generated by EF Core for more information and examples.
Applies to
Entity Framework
Feedback
Was this page helpful?
