当前位置: 首页>>代码示例>>C#>>正文


C# IIndex.GetHashCode方法代码示例

本文整理汇总了C#中IIndex.GetHashCode方法的典型用法代码示例。如果您正苦于以下问题:C# IIndex.GetHashCode方法的具体用法?C# IIndex.GetHashCode怎么用?C# IIndex.GetHashCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IIndex的用法示例。


在下文中一共展示了IIndex.GetHashCode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DisplayIndexProperties

		public void DisplayIndexProperties(IIndex index, TreeNode indexNode)
        {
            if (this._currentHashCode == index.GetHashCode()) return;

			DataTable dt = new DataTable("MyData");

			dt.Columns.Add("Property", stringType);
			dt.Columns.Add("Value", stringType);

			dt.Rows.Add(new object[] {"Name", index.Name});
			dt.Rows.Add(new object[] {"Alias", index.Alias});
			dt.Rows.Add(new object[] {"Schema", index.Schema});
			dt.Rows.Add(new object[] {"Unique", index.Unique ? "True" : "False"});
			dt.Rows.Add(new object[] {"Clustered", index.Clustered ? "True" : "False"});
			dt.Rows.Add(new object[] {"Type", index.Type.ToString()});
			dt.Rows.Add(new object[] {"FillFactor", index.FillFactor.ToString()});
			dt.Rows.Add(new object[] {"InitialSize", index.InitialSize.ToString()});
			dt.Rows.Add(new object[] {"SortBookmarks", index.SortBookmarks ? "True" : "False"});
			dt.Rows.Add(new object[] {"AutoUpdate", index.AutoUpdate ? "True" : "False"});
			dt.Rows.Add(new object[] {"NullCollation", index.NullCollation.ToString()});
			dt.Rows.Add(new object[] {"Collation", index.Collation.ToString()});
			dt.Rows.Add(new object[] {"Cardinality", index.Cardinality.ToString()});
			dt.Rows.Add(new object[] {"Pages", index.Pages.ToString()});
			dt.Rows.Add(new object[] {"FilterCondition", index.FilterCondition});
			dt.Rows.Add(new object[] {"Integrated", index.Integrated ? "True" : "False"});

			this.Grid.DataSource = dt;

			this.InitializeGrid();

			this.Text = "IIndex Properties";
			this.lnkHELP.Text = "IIndex Help ...";
            this.helpInterface = "IIndex";

            this._currentHashCode = index.GetHashCode();
		}
开发者ID:nguyenhuuhuy,项目名称:mygeneration,代码行数:36,代码来源:MetaProperties.cs

示例2: DisplayIndexProperties

        public void DisplayIndexProperties(IIndex index, TreeNode indexNode)
        {
            if (this._currentHashCode == index.GetHashCode()) return;

            propGrid.SelectedObject = index;
            this._currentHashCode = index.GetHashCode();
        }
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:7,代码来源:ucMetadataProperties.cs


注:本文中的IIndex.GetHashCode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。