Send feedback on this topic.
Teradata.Client.Provider
TdDataAdapter Constructor()
Example 



Teradata.Client.Provider Namespace > TdDataAdapter Class > TdDataAdapter Constructor : TdDataAdapter Constructor()
Initializes a new instance of the TdDataAdapter class.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New TdDataAdapter()
public TdDataAdapter()
public:
TdDataAdapter();
Remarks
A new instance of TdDataAdapter class is initialized with the following default property values.
Property Initial Value
AcceptChangesDuringFill true
ContinueUpdateOnError false
DeleteCommand null
InsertCommand null
MissingMappingAction MissingMappingAction.Passthrough
MissingSchemaAction MissingSchemaAction.Add
SelectCommand null
UpdateCommand null
Example
The following example creates an instance of TdDataAdapter class, sets some of the properties and fills a DataSet
public DataSet ExecuteQuery(TdCommand selectCmd)
{
    DataSet ds = new DataSet();
    TdDataAdapter adapter = new TdDataAdapter();
    adapter.SelectCommand = selectCmd;
    adapter.Fill(ds);   
    return ds;
}
Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdDataAdapter Class
TdDataAdapter Members
Overload List