コード例 #1
0
 private bool Equals(SqlFunctionExpression other)
 => Type == other.Type &&
 string.Equals(FunctionName, other.FunctionName) &&
 string.Equals(Schema, other.Schema) &&
 _arguments.SequenceEqual(other._arguments) &&
 (Instance == null && other.Instance == null ||
  Instance?.Equals(other.Instance) == true);
コード例 #2
0
 private bool Equals(SqlFunctionExpression other)
 => Type == other.Type &&
 string.Equals(FunctionName, other.FunctionName) &&
 string.Equals(Schema, other.Schema) &&
 IsNiladic == other.IsNiladic &&
 ExpressionEqualityComparer.Instance.SequenceEquals(_arguments, other._arguments) &&
 (Instance == null && other.Instance == null ||
  Instance?.Equals(other.Instance) == true);
コード例 #3
0
 private bool Equals(SqlFunctionExpression other)
 => Type == other.Type &&
 string.Equals(FunctionName, other.FunctionName) &&
 string.Equals(Schema, other.Schema) &&
 Instance.Equals(other.Instance) &&
 _arguments.SequenceEqual(other._arguments);
コード例 #4
0
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public override Expression VisitSqlFunction(SqlFunctionExpression sqlFunctionExpression)
 {
     if (sqlFunctionExpression.FunctionName.StartsWith("@@", StringComparison.Ordinal))
     {
         Sql.Append(sqlFunctionExpression.FunctionName);
         return sqlFunctionExpression;
     }
     return base.VisitSqlFunction(sqlFunctionExpression);
 }