Send feedback
Class SpannerDataAdapter (3.13.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.13.0 keyboard_arrow_down
public sealed class SpannerDataAdapter : DbDataAdapter, IComponent, IDisposable, ICloneable, IDbDataAdapter, IDataAdapter
Represents a set of data commands and a database connection that are used to fill the DataSet
and update a Spanner database.
Namespace
Google.Cloud.Spanner.Data
Assembly
Google.Cloud.Spanner.Data.dll
Constructors
SpannerDataAdapter()
public SpannerDataAdapter()
Initializes a new instance of the SpannerDataAdapter class
SpannerDataAdapter(SpannerConnection, String, String[])
public SpannerDataAdapter(SpannerConnection connection, string autoGeneratedCommandTable, params string[] primaryKeys)
Initializes a new instance of the SpannerDataAdapter class with the specified
Parameters Name Description connection
SpannerConnection
A connection to the Spanner database. Must not be null.
autoGeneratedCommandTable
String
The Spanner database table to use for automatically generated commands.
May be null.
primaryKeys
String []
The set of columns that form the primary key for
autoGeneratedCommandTable
.
Properties
AutoGeneratedCommandPrimaryKeys
public ISet<string> AutoGeneratedCommandPrimaryKeys { get; }
AutoGeneratedCommandTable
public string AutoGeneratedCommandTable { get; set; }
Property Value Type Description String
DeleteCommand
public SpannerCommand DeleteCommand { get; set; }
InsertCommand
public SpannerCommand InsertCommand { get; set; }
SelectCommand
public SpannerCommand SelectCommand { get; set; }
SpannerConnection
public SpannerConnection SpannerConnection { get; set; }
The connection to the Spanner database.
UpdateCommand
public SpannerCommand UpdateCommand { get; set; }
Methods
CreateRowUpdatedEvent(DataRow, IDbCommand, StatementType, DataTableMapping)
protected override RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
Overrides
CreateRowUpdatingEvent(DataRow, IDbCommand, StatementType, DataTableMapping)
protected override RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
Overrides
Fill(DataSet, Int32, Int32, String, IDbCommand, CommandBehavior)
protected override int Fill(DataSet dataSet, int startRecord, int maxRecords, string srcTable, IDbCommand command, CommandBehavior behavior)
Returns Type Description Int32
Overrides
Fill(DataSet, String, IDataReader, Int32, Int32)
protected override int Fill(DataSet dataSet, string srcTable, IDataReader dataReader, int startRecord, int maxRecords)
Returns Type Description Int32
Overrides
OnRowUpdated(RowUpdatedEventArgs)
protected override void OnRowUpdated(RowUpdatedEventArgs rowUpdatedEventArgs)
Overrides
OnRowUpdating(RowUpdatingEventArgs)
protected override void OnRowUpdating(RowUpdatingEventArgs rowUpdatingEventArgs)
Overrides
Events
RowUpdated
public event EventHandler<SpannerRowUpdatedEventArgs> RowUpdated
Occurs during Update after a command is executed against the data source.
RowUpdating
public event EventHandler<SpannerRowUpdatingEventArgs> RowUpdating
Occurs during Update before a command is executed against the data source.
Explicit Interface Implementations
IDbDataAdapter.DeleteCommand
[Browsable(false)]
IDbCommand IDbDataAdapter.DeleteCommand { get; set; }
IDbDataAdapter.InsertCommand
[Browsable(false)]
IDbCommand IDbDataAdapter.InsertCommand { get; set; }
IDbDataAdapter.SelectCommand
[Browsable(false)]
IDbCommand IDbDataAdapter.SelectCommand { get; set; }
IDbDataAdapter.UpdateCommand
[Browsable(false)]
IDbCommand IDbDataAdapter.UpdateCommand { get; set; }
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-01 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-01 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-01 UTC."]]