Show / Hide Table of Contents

Class WMDataWriter

Represents data insert/update operations performed on the associated data source.

Inheritance
object
WMAssetBase
WMDataWriter
Implements
IWMParameterizedAsset
IWMExecutableAsset
IWMAsset
IDbEntity
IWMEntity
IDocumentedEntity
INamedEntity
IWMAssetDirectoryMember
IWMPrincipalOwned
Inherited Members
WMAssetBase.ID
WMAssetBase.CreatedBy
WMAssetBase.CreatedDate
WMAssetBase.LastUpdatedBy
WMAssetBase.LastUpdatedDate
WMAssetBase.Name
WMAssetBase.Documentation
WMAssetBase.DocumentationMIMEType
WMAssetBase.Summary
WMAssetBase.ParentDirectory
WMAssetBase.FullPathName
WMAssetBase.Properties
WMAssetBase.Owner
WMAssetBase.OwnerID
WMAssetBase.OwnerType
WMAssetBase.Get<T>(WMPrincipal, string, WMAppDbContext)
WMAssetBase.GetSync<T>(string, string)
WMAssetBase.CreateFullPathName(WMAssetDirectory, string)
WMAssetBase.GetFullPath(WMPrincipal, string, string, WMAppDbContext)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Quantellia.WMServer.Asset.DataBinding
Assembly: WMServer.dll
Syntax
public class WMDataWriter : WMAssetBase, IWMParameterizedAsset, IWMExecutableAsset, IWMAsset, IDbEntity, IWMEntity, IDocumentedEntity, INamedEntity, IWMAssetDirectoryMember, IWMPrincipalOwned

Fields

Delete

Flag indicating the write operation is a delete.

Declaration
public const int Delete = 2
Field Value
Type Description
int

Insert

Flag indicating the write operation is an insert.

Declaration
public const int Insert = 0
Field Value
Type Description
int

Update

Flag indicating the write operation is an update.

Declaration
public const int Update = 1
Field Value
Type Description
int

Properties

Action

Specify the action to be performed when the Writer is executed using one of the constants Insert, Update, or Delete. Defaults to Insert.

Declaration
public int Action { get; set; }
Property Value
Type Description
int

Data

The data to be written

Declaration
public TableValue Data { get; set; }
Property Value
Type Description
TableValue

DataSource

Reference to the data source that will execute the insert/update operation.

Declaration
public IWMDataSource DataSource { get; set; }
Property Value
Type Description
IWMDataSource

KeyColumn

Declaration
public string KeyColumn { get; set; }
Property Value
Type Description
string

Parameters

Declaration
public ElementValue Parameters { get; set; }
Property Value
Type Description
ElementValue
Remarks

The value should be an instance of ObjectValue where each key/value pair in the object corresponds to a name/value pair in the data query's parameter list.

SourceString

The command string for the operation.

Declaration
public string SourceString { get; set; }
Property Value
Type Description
string

Methods

Execute(ElementValue)

Execute the operation with the specified parameters.

Declaration
public ElementValue Execute(ElementValue parameters)
Parameters
Type Name Description
ElementValue parameters
Returns
Type Description
ElementValue

Implements

IWMParameterizedAsset
IWMExecutableAsset
IWMAsset
IDbEntity
IWMEntity
IDocumentedEntity
INamedEntity
IWMAssetDirectoryMember
IWMPrincipalOwned
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