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


C# IColumn.GetHashCode方法代码示例

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


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

示例1: DisplayColumnProperties

		public void DisplayColumnProperties(IColumn column, TreeNode columnNode)
        {
            if (this._currentHashCode == column.GetHashCode()) return;

			DataTable dt = new DataTable("MyData");

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

			dt.Rows.Add(new object[] {"Name", column.Name});
			dt.Rows.Add(new object[] {"Alias", column.Alias});
			dt.Rows.Add(new object[] {"Description", column.Description});
			dt.Rows.Add(new object[] {"Ordinal", column.Ordinal.ToString()});
			dt.Rows.Add(new object[] {"DataTypeName", column.DataTypeName});
			dt.Rows.Add(new object[] {"DataTypeNameComplete", column.DataTypeNameComplete});
			dt.Rows.Add(new object[] {"NumericPrecision", column.NumericPrecision.ToString()});
			dt.Rows.Add(new object[] {"NumericScale", column.NumericScale.ToString()});
			dt.Rows.Add(new object[] {"DateTimePrecision", column.DateTimePrecision.ToString()});
			dt.Rows.Add(new object[] {"CharacterMaxLength", column.CharacterMaxLength.ToString()});
			dt.Rows.Add(new object[] {"CharacterOctetLength", column.CharacterOctetLength.ToString()});
			dt.Rows.Add(new object[] {"LanguageType", column.LanguageType});
			dt.Rows.Add(new object[] {"DbTargetType", column.DbTargetType});
			dt.Rows.Add(new object[] {"IsNullable", column.IsNullable ? "True" : "False"});
			dt.Rows.Add(new object[] {"IsComputed", column.IsComputed ? "True" : "False"});
			dt.Rows.Add(new object[] {"IsInPrimaryKey", column.IsInPrimaryKey ? "True" : "False"});
			dt.Rows.Add(new object[] {"IsInForeignKey", column.IsInForeignKey ? "True" : "False"});
			dt.Rows.Add(new object[] {"IsAutoKey", column.IsAutoKey ? "True" : "False"});
			dt.Rows.Add(new object[] {"AutoKeySeed", column.AutoKeySeed});
			dt.Rows.Add(new object[] {"AutoKeyIncrement", column.AutoKeyIncrement});
			dt.Rows.Add(new object[] {"HasDefault", column.HasDefault ? "True" : "False"});
			dt.Rows.Add(new object[] {"Default", column.Default});
			dt.Rows.Add(new object[] {"Flags", column.Flags.ToString()});
			dt.Rows.Add(new object[] {"PropID", column.PropID.ToString()});
			dt.Rows.Add(new object[] {"Guid", column.Guid.ToString()});
			dt.Rows.Add(new object[] {"TypeGuid", column.TypeGuid.ToString()});
			dt.Rows.Add(new object[] {"LCID", column.LCID.ToString()});
			dt.Rows.Add(new object[] {"SortID", column.SortID.ToString()});
			dt.Rows.Add(new object[] {"CompFlags", column.CompFlags.ToString()});
			dt.Rows.Add(new object[] {"DomainName", column.DomainName});
			dt.Rows.Add(new object[] {"HasDomain", column.HasDomain ? "True" : "False"});

			this.Grid.DataSource = dt;

			this.InitializeGrid();

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

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

示例2: DisplayColumnProperties

        public void DisplayColumnProperties(IColumn column, TreeNode columnNode)
        {
            if (this._currentHashCode == column.GetHashCode()) return;

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


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