Interface IWMDataSource
Classes that represent actual data sources must implement this class.
Inherited Members
Namespace: Quantellia.WMServer.Asset.DataBinding
Assembly: WMServer.dll
Syntax
public interface IWMDataSource : IWMAsset, IDbEntity, IWMEntity, IWMAssetDirectoryMember, IWMPrincipalOwned, IDisposable, IDocumentedEntity, INamedEntity
Properties
AccessorString
The string defining how to connect to the data source (e.g. database connect string, file name, URL, etc.)
Declaration
string AccessorString { get; }
Property Value
Type | Description |
---|---|
string |
InnerDataSource
Reference to the implementation-specific data source object.
Declaration
object InnerDataSource { get; }
Property Value
Type | Description |
---|---|
object |
Methods
CommitTransaction(string)
Commit a transaction previously opened with OpenTransaction().
Declaration
void CommitTransaction(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id |
Connect()
Connect to the data source
Declaration
void Connect()
OpenTransaction()
Open a transaction. All subsequent operations on the data source will be under this transaction. until it is committed or rolled back.
Declaration
string OpenTransaction()
Returns
Type | Description |
---|---|
string | The ID of the transaction |
Read(WMDataReader, ElementValue)
Executes the specified query and returns the data it retrieves from this data source.
Declaration
ElementValue Read(WMDataReader query, ElementValue parameters = null)
Parameters
Type | Name | Description |
---|---|---|
WMDataReader | query | |
ElementValue | parameters |
Returns
Type | Description |
---|---|
ElementValue |
RollbackTransaction(string)
Roll back a transaction previously opened with OpenTransaction().
Declaration
void RollbackTransaction(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id |
Write(WMDataWriter, ElementValue)
Executes the data update operations defined in the WMDataWriter
Declaration
ElementValue Write(WMDataWriter writer, ElementValue parameters = null)
Parameters
Type | Name | Description |
---|---|---|
WMDataWriter | writer | |
ElementValue | parameters |
Returns
Type | Description |
---|---|
ElementValue |