Click or drag to resize

MapperKernelClone Method (IMapper, MapperCloneFlags)

Create a clone of the mapper. Unless otherwise specified by modifier flags, the clone will be requeried using the same filters and sort as the original mapper.

Namespace:  NetQuarry.Data
Assembly:  EAP.Mapper (in EAP.Mapper.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public void Clone(
	IMapper clone,
	MapperCloneFlags flags
)

Parameters

clone
Type: NetQuarry.DataIMapper
The IMapper object to clone.
flags
Type: NetQuarry.DataMapperCloneFlags
Modifier flags

Implements

IMapperClone(IMapper, MapperCloneFlags)
Examples
The following example clones a mapper and copies values from properties of the clone to the current mapper.
IMapper mapperClone = new Mapper();
try
{
    sender.Clone(mapperClone, 0);
    sender.Fields["max_bid_amt"].Properties.Import(mapperClone.Fields["max_bid_amt"].Properties, CollectionAddFlags.ReplaceIfDiff);
    sender.Fields["max_bid_amt"].TextItems.Add("Watermark", mapperClone.Fields["max_bid_amt"].TextItems["Watermark"]);
    sender.Fields["max_bid_amt"].TextItems.Add("ValidationText", mapperClone.Fields["max_bid_amt"].TextItems["ValidationText"]);
}
catch
{
    throw;
}
finally
{
    mapperClone.Close();
}
See Also