Table of Contents

Class LocatorMapper

Namespace
Tripous.Data
Assembly
Tripous.Data.dll

Creates locator mapping plans.

public class LocatorMapper
Inheritance
LocatorMapper
Inherited Members
Extension Methods

Methods

Apply(LocatorMapPlan, DataRow, DataRow)

Applies a locator mapping plan to a target row.

public virtual void Apply(LocatorMapPlan Plan, DataRow SourceRow, DataRow TargetRow)

Parameters

Plan LocatorMapPlan
SourceRow DataRow
TargetRow DataRow

CreatePlan(LocatorDef, TableDef, FieldDef)

Creates a locator mapping plan.

public virtual LocatorMapPlan CreatePlan(LocatorDef LocatorDef, TableDef TargetTable, FieldDef ReferenceField)

Parameters

LocatorDef LocatorDef
TargetTable TableDef
ReferenceField FieldDef

Returns

LocatorMapPlan

FindSnapshotField(TableDef, TableDef, FieldDef)

Finds a snapshot field for a join field.

protected virtual FieldDef FindSnapshotField(TableDef TargetTable, TableDef JoinTable, FieldDef JoinField)

Parameters

TargetTable TableDef
JoinTable TableDef
JoinField FieldDef

Returns

FieldDef

FindTargetField(TableDef, FieldDef, string)

Finds a target field for a locator result field.

protected virtual FieldDef FindTargetField(TableDef TargetTable, FieldDef ReferenceField, string SourceField)

Parameters

TargetTable TableDef
ReferenceField FieldDef
SourceField string

Returns

FieldDef

GetSourceRowValue(DataRow, string)

Returns a source row value.

protected virtual object GetSourceRowValue(DataRow SourceRow, string SourceField)

Parameters

SourceRow DataRow
SourceField string

Returns

object

SetTargetRowValue(DataRow, string, object)

Sets a target row value.

protected virtual void SetTargetRowValue(DataRow TargetRow, string TargetField, object Value)

Parameters

TargetRow DataRow
TargetField string
Value object