EntityFrameworkQueryableExtensions.TagWithCallSite<T> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 標記新增至與 EF LINQ 查詢相關聯的標記集合,其中包含來原始檔案名和呼叫方法的行,可在查詢管線中的不同點提供內容追蹤資訊。
public static System.Linq.IQueryable<T> TagWithCallSite<T> (this System.Linq.IQueryable<T> source, string? filePath = default, int lineNumber = 0);
static member TagWithCallSite : System.Linq.IQueryable<'T> * string * int -> System.Linq.IQueryable<'T>
<Extension()>
Public Function TagWithCallSite(Of T) (source As IQueryable(Of T), Optional filePath As String = Nothing, Optional lineNumber As Integer = 0) As IQueryable(Of T)
類型參數
- T
正在查詢的實體類型。
參數
- source
- IQueryable<T>
來源查詢。
- filePath
- String
呼叫方法的檔案名
- lineNumber
- Int32
呼叫方法的檔案行號
傳回
IQueryable<T>
以指定標記標注的新查詢。
例外狀況
source
備註
如需詳細資訊和範例 ,請參閱在 EF Core 中標記查詢 。