MissingSchemaAction 枚举
定义
指定在将数据添加到 DataSet 而缺少要求的 DataTable 或 DataColumn 时要采取的操作。Specifies the action to take when adding data to the DataSet and the required DataTable or DataColumn is missing.
public enum class MissingSchemaAction
public enum MissingSchemaAction
type MissingSchemaAction =
Public Enum MissingSchemaAction
- 继承
字段
Add | 1 | 添加必需的列以完成架构。Adds the necessary columns to complete the schema. |
AddWithKey | 4 | 添加必需的列和主键信息以完成架构。Adds the necessary columns and primary key information to complete the schema. 有关如何将主键信息添加到 DataTable 的更多信息,请参见 FillSchema(DataSet, SchemaType)。为与用于 OLE DB 的 .NET Framework 数据提供程序一起正确运行, |
Error | 3 | 如果缺少指定的列映射,则生成 InvalidOperationException。An InvalidOperationException is generated if the specified column mapping is missing. |
Ignore | 2 | 忽略额外列。Ignores the extra columns. |
注解
当MissingSchemaAction采取可能更改的架构DataSet的操作时, 将使用这些值。The MissingSchemaAction values are used whenever an action is taken that could change the schema of the DataSet.