Class OpenDIDataReader
Represents a data query or other operation against an OpenDIDataSource
Inherited Members
Namespace: Quantellia.WMServer.OpenDI
Assembly: WMServer.dll
Syntax
public class OpenDIDataReader : OpenDIAsset
Constructors
OpenDIDataReader()
Default constructor
Declaration
public OpenDIDataReader()
OpenDIDataReader(WMDataReader)
Constructor that initializes a new instance with the data from a WMDataReader object.
Declaration
public OpenDIDataReader(WMDataReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| WMDataReader | reader | The reader with which to initialize this OpenDIDataReader |
Properties
Action
The action taken by the query of this data reader
Declaration
public int? Action { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
DataSource
The ID of the WMDataSourceBase bound to this data reader
Declaration
public string? DataSource { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SourceString
The SQL query that this data reader operates on the database.
Declaration
public string? SourceString { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
ToDTODefault()
Create a new IWMAssetBaseDTO object that contains the properties of this OpenDIAsset. Throws an exception if null values without default are encountered.
Declaration
public WMDataReaderDTO ToDTODefault()
Returns
| Type | Description |
|---|---|
| WMDataReaderDTO | A IWMAssetBaseDTO object that contains the properties (or default values) of this OpenDIAsset |
ToDTOPartial()
Create a new IWMAssetBaseDTO object that contains only the properties of this OpenDIAsset with no defaults.
Declaration
public WMDataReaderDTO ToDTOPartial()
Returns
| Type | Description |
|---|---|
| WMDataReaderDTO | A IWMAssetBaseDTO object that contains the properties of this OpenDIAsset |