本文整理汇总了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();
}
示例2: DisplayColumnProperties
public void DisplayColumnProperties(IColumn column, TreeNode columnNode)
{
if (this._currentHashCode == column.GetHashCode()) return;
propGrid.SelectedObject = column;
this._currentHashCode = column.GetHashCode();
}