Beispiel #1
0
        public SqlOutputParameterResult <TValue> DeepCloneWithValue(TValue value)
        {
            var result = new SqlOutputParameterResult <TValue>(
                this.OutputParameter?.DeepClone(),
                value);

            return(result);
        }
Beispiel #2
0
        /// <inheritdoc />
        public bool Equals(SqlOutputParameterResult <TValue> other)
        {
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            if (ReferenceEquals(other, null))
            {
                return(false);
            }

            var result = this.OutputParameter.IsEqualTo(other.OutputParameter) &&
                         this.Value.IsEqualTo(other.Value);

            return(result);
        }