Blog
Public Properties of DbDataTable Class Members
In this blog, I have discussed some of the Public Properties of DbDataTable Class Members which are CachedUpdates, CaseSensitive, ChildRelations, Columns etc.
DbDataTable class indicates an object that
offers all of the functions required to access and modify data from a database.
This class is constructed through the use of ADO.NET components. Some of the
public properties of DbDataTable Class Members are as follows:
CachedUpdates : It activates or deactivates the cached updates mode.
CaseSensitive: This property shows whether comparisons of strings in the
table are case-sensitive or not. System.Data.DataTable class is a base class for
it.
ChildRelations : For a particular Datatable, it attains the accumulation of
child relations. System.Data.DataTable class is a base class for it.
Columns: It take the accumulation of columns that relate to a specified
table.
ConflictOption: The DbDataTable uses some ConflictOption. So the
ConflictOption shows which one is used by the DbDataTable.
Connection: An IDb connection is used for establishing a connection to a
data source. So the Connection property take or specify that IDb connection.
Constraints: Every table have some constraints associated with it and a
table has to manage it. So it took the accumulation of columns which a
particular DataTable maintains.
DataSet: Every DataSet contains DataTable in which records from
database are stored. So it take that DataSet which is related to a particular
DataTable. Here also the System.Data.DataTable is a base class for this
property.
DeleteCommand: This property take or specify an SQL query for removing
records from the DataSet.
DefaultView: This property takes a customized view of the table that can
contain filtered view or a cursor position. The base class of this property is
System.Data.DataTable.
DisableListChangedEvents: It deactivates some of the events which come into
effect when the content of DbDataTable is changed.
InsertCommand: This property takes or specify an SQL query for adding new
records into the DataSet.
DesignTimeVisible: This property indicates whether the component will be
visible at design time or not.
HasErrors: It checks for errors in all the rows of the tables which are
related to DataSet by using some particular value for specifying the error. It
returns value even if there is no error. System.Data.DataTable is the base class
for this property.
IsInitialized: This property returns a value that specify whether the
DataTable is initialized or not.