다음을 통해 공유


IAggregateMethodCallTranslatorProvider.Translate 메서드

정의

LINQ 집계 MethodCallExpression 를 SQL 동등한 값으로 변환합니다.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? Translate (Microsoft.EntityFrameworkCore.Metadata.IModel model, System.Reflection.MethodInfo method, Microsoft.EntityFrameworkCore.Query.EnumerableExpression source, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> logger);
abstract member Translate : Microsoft.EntityFrameworkCore.Metadata.IModel * System.Reflection.MethodInfo * Microsoft.EntityFrameworkCore.Query.EnumerableExpression * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Function Translate (model As IModel, method As MethodInfo, source As EnumerableExpression, arguments As IReadOnlyList(Of SqlExpression), logger As IDiagnosticsLogger(Of DbLoggerCategory.Query)) As SqlExpression

매개 변수

model
IModel

번역에 사용할 모델입니다.

method
MethodInfo

의 메서드 정보입니다 Method.

source
EnumerableExpression

집계 메서드가 적용되는 원본입니다.

arguments
IReadOnlyList<SqlExpression>

스칼라 Arguments의 SQL 표현입니다.

logger
IDiagnosticsLogger<DbLoggerCategory.Query>

사용할 쿼리 로거입니다.

반환

의 SQL 번역입니다 MethodCallExpression.

적용 대상