RelationalDbFunctionsExtensions.Collate<TProperty> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
明確指定一個用於 LINQ 查詢的排序。 可用來產生如 WHERE customer.name COLLATE 'de_DE' = 'John Doe'的片段。
public static TProperty Collate<TProperty>(this Microsoft.EntityFrameworkCore.DbFunctions _, TProperty operand, string collation);
static member Collate : Microsoft.EntityFrameworkCore.DbFunctions * 'Property * string -> 'Property
<Extension()>
Public Function Collate(Of TProperty) (_ As DbFunctions, operand As TProperty, collation As String) As TProperty
類型參數
- TProperty
排序所指定的運算元類型。
參數
DbFunctions 執行個體。
- operand
- TProperty
將排序應用於的運算元。
- collation
- String
定序的名稱。
傳回
TProperty
備註
可用的彙整資料及其名稱因資料庫而異,請參考你資料庫的文件以獲取更多資訊。
更多資訊與範例請參見 資料庫函數 。