示例#1
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (isset.table_name)
                {
                    hashcode = (hashcode * 397) + Table_name.GetHashCode();
                }
                if (isset.num_cols)
                {
                    hashcode = (hashcode * 397) + Num_cols.GetHashCode();
                }
                if (isset.is_view)
                {
                    hashcode = (hashcode * 397) + Is_view.GetHashCode();
                }
                if (isset.is_replicated)
                {
                    hashcode = (hashcode * 397) + Is_replicated.GetHashCode();
                }
                if (isset.shard_count)
                {
                    hashcode = (hashcode * 397) + Shard_count.GetHashCode();
                }
                if (isset.max_rows)
                {
                    hashcode = (hashcode * 397) + Max_rows.GetHashCode();
                }
                if (isset.table_id)
                {
                    hashcode = (hashcode * 397) + Table_id.GetHashCode();
                }
                if (isset.max_table_id)
                {
                    hashcode = (hashcode * 397) + Max_table_id.GetHashCode();
                }
                if (isset.col_types)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Col_types);
                }
                if (isset.col_names)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Col_names);
                }
            }
            return(hashcode);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (isset.row_desc)
                {
                    hashcode = (hashcode * 397) + Row_desc.GetHashCode();
                }
                if (isset.fragment_size)
                {
                    hashcode = (hashcode * 397) + Fragment_size.GetHashCode();
                }
                if (isset.page_size)
                {
                    hashcode = (hashcode * 397) + Page_size.GetHashCode();
                }
                if (isset.max_rows)
                {
                    hashcode = (hashcode * 397) + Max_rows.GetHashCode();
                }
                if (isset.view_sql)
                {
                    hashcode = (hashcode * 397) + View_sql.GetHashCode();
                }
                if (isset.shard_count)
                {
                    hashcode = (hashcode * 397) + Shard_count.GetHashCode();
                }
                if (isset.key_metainfo)
                {
                    hashcode = (hashcode * 397) + Key_metainfo.GetHashCode();
                }
                if (isset.is_temporary)
                {
                    hashcode = (hashcode * 397) + Is_temporary.GetHashCode();
                }
                if (isset.partition_detail)
                {
                    hashcode = (hashcode * 397) + Partition_detail.GetHashCode();
                }
            }
            return(hashcode);
        }