public SqlExpression Translate(SqlExpression instance, MemberInfo member, Type returnType, IDiagnosticsLogger <DbLoggerCategory.Query> logger) { if (member.DeclaringType == typeof(DateTime) && member.Name == nameof(DateTime.Date)) { return(_fbSqlExpressionFactory.DateTimeDateMember(instance)); } return(null); }
public SqlExpression Translate(SqlExpression instance, MemberInfo member, Type returnType) { if (member.DeclaringType == typeof(DateTime) && member.Name == nameof(DateTime.Date)) { return(_fbSqlExpressionFactory.DateTimeDateMember(instance)); } return(null); }