Data adapter between database and application data models. Implements select, insert, update and delete operations.
Inheritance Hierarchy
NReco.Data DbDataAdapter
Namespace: NReco.Data
Assembly: NReco.Data (in NReco.Data.dll) Version: 1.0.2
Syntax
The DbDataAdapter type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DbDataAdapter |
Initializes a new instance of the DbDataAdapter.
|
Methods
Name | Description | |
---|---|---|
Delete(Object) |
Executes DELETE statement generated by annotated POCO model.
| |
Delete(Query) |
Executes DELETE statement generated by specified Query.
| |
DeleteAsync(Object) |
Asynchronously executes DELETE statement generated by annotated POCO model.
| |
DeleteAsync(Query) |
Asynchronously executes DELETE statement generated by specified Query.
| |
DeleteAsync(Query, CancellationToken) |
Asynchronously executes DELETE statement generated by specified Query.
| |
Dispose | Releases all resources used by the DbDataAdapter | |
Dispose(Boolean) | Releases the unmanaged resources used by the DbDataAdapter and optionally releases the managed resources | |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Insert(Object) |
Executes INSERT statement generated by annotated POCO model.
| |
Insert(String, IDictionary String, Object ) |
Executes INSERT statement generated by specified table name and dictionary values.
| |
Insert(String, Object) |
Executes INSERT statement generated by specified table name and annotated POCO model.
| |
InsertAsync(Object) |
Asynchronously executes INSERT statement generated by annotated POCO model.
| |
InsertAsync(String, IDictionary String, Object ) |
Asynchronously executes INSERT statement generated by specified table name and dictionary values.
| |
InsertAsync(String, Object) |
Asynchronously executes INSERT statement generated by specified table name and POCO model.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Select(IDbCommand) |
Creates a DbDataAdapter SelectQuery based on specified IDbCommand instance.
| |
Select(Query) |
Returns prepared select query.
| |
Select(String, Object ) |
Creates a DbDataAdapter SelectQuery based on a raw SQL query.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Update(Object) |
Executes UPDATE statement generated by annotated POCO model.
| |
Update(String, RecordSet) |
Calls the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified RecordSet.
| |
Update(Query, IDictionary String, Object ) |
Executes UPDATE statement generated by specified Query and dictionary values.
| |
Update(Query, Object) |
Executes UPDATE statement generated by specified Query and POCO model.
| |
UpdateAsync(Object) |
Asynchronously executes UPDATE statement generated by annotated POCO model.
| |
UpdateAsync(String, RecordSet) |
An asynchronous version of Update(String, RecordSet) that calls the respective INSERT, UPDATE, or DELETE statements
for each added, updated, or deleted row in the specified RecordSet.
| |
UpdateAsync(Query, IDictionary String, Object ) |
Asynchronously executes UPDATE statement generated by specified Query and dictionary values.
| |
UpdateAsync(Query, Object) |
Asynchronously executes UPDATE statement generated by specified Query and POCO model.
| |
UpdateAsync(String, RecordSet, CancellationToken) |
An asynchronous version of Update(String, RecordSet) that calls the respective INSERT, UPDATE, or DELETE statements
for each added, updated, or deleted row in the specified RecordSet.
|
Properties
Name | Description | |
---|---|---|
ApplyOffset |
Gets or sets flag that determines whether query record offset is applied during reading query results.
| |
CommandBuilder |
Gets IDbCommandBuilder associated with this data adapter.
| |
Connection |
Gets IDbConnection associated with this data adapter.
| |
Transaction |
Gets or sets IDbTransaction initiated for the Connection.
|
See Also