Esempio n. 1
0
        /// <summary>
        ///     Returns a hash code for this object.
        /// </summary>
        /// <returns> The hash code. </returns>
        public override int GetHashCode()
        {
            var hashCode = ClrType?.GetHashCode() ?? 0;

            hashCode = (hashCode * 397) ^ (_providerClrType?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ (_customConverter?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ IsKeyOrIndex.GetHashCode();
            hashCode = (hashCode * 397) ^ (Size?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ (IsUnicode?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ (IsRowVersion?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ (Scale?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ (Precision?.GetHashCode() ?? 0);
            return(hashCode);
        }
        /// <summary>
        ///     Returns a hash code for this object.
        /// </summary>
        /// <returns> The hash code. </returns>
        public override int GetHashCode()
        {
            var hashCode = (ConfiguredProviderClrType != null ? ConfiguredProviderClrType.GetHashCode() : 0);

            hashCode = (hashCode * 397) ^ IsKeyOrIndex.GetHashCode();
            hashCode = (hashCode * 397) ^ (Size?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ (MemberInfo?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ (IsUnicode?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ (IsRowVersion?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ (Scale?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ (Precision?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ (_customConverter?.GetHashCode() ?? 0);
            hashCode = (hashCode * 397) ^ (ModelClrType?.GetHashCode() ?? 0);
            return(hashCode);
        }
Esempio n. 3
0
            /// <summary>
            ///     Returns a hash code for this object.
            /// </summary>
            /// <returns> The hash code. </returns>
            public override int GetHashCode()
            {
                var hashCode = (StoreClrType != null ? StoreClrType.GetHashCode() : 0);

                hashCode = (hashCode * 397) ^ IsKeyOrIndex.GetHashCode();
                hashCode = (hashCode * 397) ^ (Size?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (IsUnicode?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (IsRowVersion?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (IsFixedLength?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (Scale?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (Precision?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (_customConverter?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (ModelClrType?.GetHashCode() ?? 0);
                return(hashCode);
            }