ParamMapping
Overview
The ParamMapping class is used to create mapping between ADO.NET command parameters and DeltaChange values. This mapping is establiched when a DeltaChange instance containining pending database changes is processed by the Data Abstract server.
In most cases there is no need to manually create or anyhow manupilate instances of the ParamMapping class.
For internal use only.
Location
- Reference: RemObjects.DataAbstract.Server.dll
- Namespace: RemObjects.DataAbstract.Server
constructor
Creates a new instance of the ParamMapping class and sets corresponding property values.
constructor(parameter: IDataParameter; mappingType: ParamMappingType; deltaValueIndex: Int32)
ParamMapping(IDataParameter parameter, ParamMappingType mappingType, Int32 deltaValueIndex)
Sub New(parameter As IDataParameter, mappingType As ParamMappingType, deltaValueIndex As Int32)
Parameters:
- parameter: ADO.NET command parameter
- mappingType: Parameter value source (either DeltaChange or DeltaChange collection)
- deltaValueIndex: Index of the parameter value in the source collection
DeltaValueIndex
Gets offset of the parameter value in the data source collection.
property DeltaValueIndex: Int32 read;
Int32 DeltaValueIndex { get; }
ReadOnly Property DeltaValueIndex() As Int32
GeneratorName obsolete
Gets or sets name of the auto increment values generator assotiated with the corresponding Schema field.
The value of this parameter is not used by the Data Abstract.
property GeneratorName: String read write;
String GeneratorName { get; set; }
Property GeneratorName() As String
IsAutoInc obsolete
Gets or sets flag indicating whether the command parameter corresponds to an AutoInc Schema field (ie field of type DataType.AutoInc r DataType.LargeAutoInc).
The value of this parameter is not used by the Data Abstract.
property IsAutoInc: Boolean read write;
Boolean IsAutoInc { get; set; }
Property IsAutoInc() As Boolean
MappingType
Get kind of the parameter value source (either DeltaChange or DeltaChange)
property MappingType: ParamMappingType read;
ParamMappingType MappingType { get; }
ReadOnly Property MappingType() As ParamMappingType
Parameter
Gets the underlying ADO.NET command parameter.
property Parameter: IDataParameter read;
IDataParameter Parameter { get; }
ReadOnly Property Parameter() As IDataParameter
DeltaValueIndex
Gets offset of the parameter value in the data source collection.
property DeltaValueIndex: Int32 read;
Int32 DeltaValueIndex { get; }
ReadOnly Property DeltaValueIndex() As Int32
GeneratorName obsolete
Gets or sets name of the auto increment values generator assotiated with the corresponding Schema field.
The value of this parameter is not used by the Data Abstract.
property GeneratorName: String read write;
String GeneratorName { get; set; }
Property GeneratorName() As String
IsAutoInc obsolete
Gets or sets flag indicating whether the command parameter corresponds to an AutoInc Schema field (ie field of type DataType.AutoInc r DataType.LargeAutoInc).
The value of this parameter is not used by the Data Abstract.
property IsAutoInc: Boolean read write;
Boolean IsAutoInc { get; set; }
Property IsAutoInc() As Boolean
MappingType
Get kind of the parameter value source (either DeltaChange or DeltaChange)
property MappingType: ParamMappingType read;
ParamMappingType MappingType { get; }
ReadOnly Property MappingType() As ParamMappingType
Parameter
Gets the underlying ADO.NET command parameter.
property Parameter: IDataParameter read;
IDataParameter Parameter { get; }
ReadOnly Property Parameter() As IDataParameter
constructor
Creates a new instance of the ParamMapping class and sets corresponding property values.
constructor(parameter: IDataParameter; mappingType: ParamMappingType; deltaValueIndex: Int32)
ParamMapping(IDataParameter parameter, ParamMappingType mappingType, Int32 deltaValueIndex)
Sub New(parameter As IDataParameter, mappingType As ParamMappingType, deltaValueIndex As Int32)
Parameters:
- parameter: ADO.NET command parameter
- mappingType: Parameter value source (either DeltaChange or DeltaChange collection)
- deltaValueIndex: Index of the parameter value in the source collection