IDataSourceFieldSchema.Identity 属性
定义
获取一个值,该值指示字段值是否随每个新增行自动递增。Gets a value indicating whether the value of the field automatically increments for each new row.
public:
property bool Identity { bool get(); };
public bool Identity { get; }
member this.Identity : bool
Public ReadOnly Property Identity As Boolean
属性值
如果字段的 DataType 为 numeric 并且基础字段随新增行自动递增,则为 true;否则为 false。true if the field's DataType is numeric and the underlying field increments automatically as new rows are added; otherwise, false.
注解
对于 DataColumn 对象, Identity 属性与属性相对应 AutoIncrement 。For a DataColumn object, the Identity property corresponds to the AutoIncrement property. 在 SQL Server 中,标识列是一种自动递增每个已添加记录的数字列,因此确保该值唯一标识该记录。In SQL Server, an Identity column is a numerical column that automatically increments with each added record, thereby ensuring that the value uniquely identifies that record.