Ejemplo n.º 1
0
        public override int Visit(SqlPropertyName sqlPropertyName)
        {
            int hashCode = SqlPropertyNameHashCode;

            hashCode = CombineHashes(hashCode, sqlPropertyName.Value.GetHashCode());
            return(hashCode);
        }
Ejemplo n.º 2
0
        public override int Visit(SqlPropertyName sqlPropertyName)
        {
            int hashCode = SqlPropertyNameHashCode;

            hashCode = CombineHashes(hashCode, SqlObjectHasher.Djb2(sqlPropertyName.Value));
            return(hashCode);
        }
 private SqlObjectProperty(
     SqlPropertyName name,
     SqlScalarExpression value)
 {
     this.Name  = name ?? throw new ArgumentNullException(nameof(name));
     this.Value = value ?? throw new ArgumentNullException(nameof(value));
 }
 public override SqlObject Visit(SqlPropertyName sqlPropertyName)
 {
     return(SqlPropertyName.Create(
                this.GetObfuscatedString(
                    sqlPropertyName.Value,
                    "p",
                    ref this.fieldNameSequenceNumber)));
 }
        public static SqlPropertyName Create(string value)
        {
            if (!SqlPropertyName.SystemProperties.TryGetValue(value, out SqlPropertyName sqlPropertyName))
            {
                sqlPropertyName = new SqlPropertyName(value);
            }

            return(sqlPropertyName);
        }
Ejemplo n.º 6
0
        private SqlObjectProperty(
            SqlPropertyName name,
            SqlScalarExpression expression)
            : base(SqlObjectKind.ObjectProperty)
        {
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }

            if (expression == null)
            {
                throw new ArgumentNullException("expression");
            }

            this.Name       = name;
            this.Expression = expression;
        }
 public override void Visit(SqlPropertyName sqlPropertyName)
 {
     this.writer.Write('"');
     this.writer.Write(sqlPropertyName.Value);
     this.writer.Write('"');
 }
Ejemplo n.º 8
0
 public static SqlObjectProperty Create(
     SqlPropertyName name,
     SqlScalarExpression expression)
 {
     return(new SqlObjectProperty(name, expression));
 }