IDataSourceFieldSchema 接口

定义

提供用于在设计时描述数据字段结构的基本功能。Provides basic functionality for describing the structure of a data field at design time.

public interface class IDataSourceFieldSchema
public interface IDataSourceFieldSchema
type IDataSourceFieldSchema = interface
Public Interface IDataSourceFieldSchema
派生

注解

IDataSourceFieldSchema接口允许类实现一组描述数据源中的字段的属性。The IDataSourceFieldSchema interface allows a class to implement a set of properties that describe a field in a data source. DataSetFieldSchema 类实现 IDataSourceFieldSchema 接口。The DataSetFieldSchema class implements the IDataSourceFieldSchema interface.

自定义控件设计IDataSourceFieldSchema器组件使用实现的类, 以便在设计时为数据绑定控件提供数据源字段和属性的列表。Classes that implement the IDataSourceFieldSchema are used by custom control designer components to provide lists of data source fields and properties for data-bound controls at design time.

属性

DataType

获取存储在字段中的数据的类型。Gets the type of data stored in the field.

Identity

获取一个值,该值指示字段值是否随每个新增行自动递增。Gets a value indicating whether the value of the field automatically increments for each new row.

IsReadOnly

获取一个值,该值指示此字段是否为可编辑字段。Gets a value indicating whether the field is editable.

IsUnique

获取一个值,该值指示是否要求字段值是唯一的。Gets a value indicating whether values in the field are required to be unique.

Length

获取一个值,该值指示存储在字段中的数据的大小。Gets a value indicting the size of data that can be stored in the field.

Name

获取字段名。Gets the name of the field.

Nullable

获取一个值,该值指示字段是否可接受 null 值。Gets a value indicating whether the field can accept null values.

Precision

获取用于表示字段中的数值的最大位数。Gets the maximum number of digits used to represent a numerical value in the field.

PrimaryKey

获取一个值,该值指示字段是否在主键中。Gets a value indicating whether the field is in the primary key.

Scale

获取字段中的数值解析成的小数位数。Gets the number of decimal places to which numerical values in the field are resolved.

适用于

另请参阅