Show / Hide Table of Contents

Interface IWMDataSource

Classes that represent actual data sources must implement this class.

Inherited Members
IDbEntity.CreatedBy
IDbEntity.CreatedDate
IDbEntity.LastUpdatedBy
IDbEntity.LastUpdatedDate
IWMEntity.ID
IWMAssetDirectoryMember.ParentDirectory
IWMAssetDirectoryMember.FullPathName
IWMPrincipalOwned.Owner
IDisposable.Dispose()
IDocumentedEntity.Documentation
IDocumentedEntity.DocumentationMIMEType
INamedEntity.Name
INamedEntity.Summary
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
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 1/15/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE