IMemberTranslatorProvider.Translate 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Translate(SqlExpression, MemberInfo, Type) | |
Translate(SqlExpression, MemberInfo, Type, IDiagnosticsLogger<DbLoggerCategory.Query>) |
將 LINQ MemberExpression 轉譯為 SQL 對等專案。 |
Translate(SqlExpression, MemberInfo, Type)
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression Translate (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression instance, System.Reflection.MemberInfo member, Type returnType);
abstract member Translate : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * System.Reflection.MemberInfo * Type -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Function Translate (instance As SqlExpression, member As MemberInfo, returnType As Type) As SqlExpression
參數
- instance
- SqlExpression
- member
- MemberInfo
- returnType
- Type
傳回
適用於
Translate(SqlExpression, MemberInfo, Type, IDiagnosticsLogger<DbLoggerCategory.Query>)
將 LINQ MemberExpression 轉譯為 SQL 對等專案。
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression Translate (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression instance, System.Reflection.MemberInfo member, Type returnType, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> logger);
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? Translate (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? instance, System.Reflection.MemberInfo member, Type returnType, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> logger);
abstract member Translate : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * System.Reflection.MemberInfo * Type * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Function Translate (instance As SqlExpression, member As MemberInfo, returnType As Type, logger As IDiagnosticsLogger(Of DbLoggerCategory.Query)) As SqlExpression
參數
- instance
- SqlExpression
的 Expression SQL 標記法。
- member
- MemberInfo
的成員資訊。 Member
要使用的查詢記錄器。
傳回
的 MemberExpression SQL 轉譯。