Table of Contents

Class FieldMapping

Namespace
StockSharp.Algo.Import
Assembly
StockSharp.Algo.dll

Importing field description.

public abstract class FieldMapping : NotifiableObject, IPersistable, ICloneable
Inheritance
FieldMapping
Implements
IPersistable
Derived
Extension Methods

Constructors

FieldMapping(string, Func<string>, Func<string>, Type)

Initializes a new instance of the FieldMapping.

protected FieldMapping(string name, Func<string> getDisplayName, Func<string> getDescription, Type type)

Parameters

name string

Name.

getDisplayName Func<string>

Display name.

getDescription Func<string>

Description.

type Type

Field type.

Fields

GetDescription

Description.

protected readonly Func<string> GetDescription

Field Value

Func<string>

GetDisplayName

Display name.

protected readonly Func<string> GetDisplayName

Field Value

Func<string>

Properties

AdapterType

Adapter.

public Type AdapterType { get; set; }

Property Value

Type

DefaultValue

Default value.

public string DefaultValue { get; set; }

Property Value

string

Description

Description.

public string Description { get; }

Property Value

string

DisplayName

Display name.

public string DisplayName { get; }

Property Value

string

Format

Date format.

public string Format { get; set; }

Property Value

string

IsAdapter

AdapterType required.

public bool IsAdapter { get; set; }

Property Value

bool

IsEnabled

Is field enabled.

public bool IsEnabled { get; set; }

Property Value

bool

IsExtended

Is field extended.

public bool IsExtended { get; set; }

Property Value

bool

IsMultiple

Multiple field's instancies allowed.

public bool IsMultiple { get; }

Property Value

bool

IsRequired

Is field required.

public bool IsRequired { get; set; }

Property Value

bool

Name

Name.

public string Name { get; }

Property Value

string

Order

Field order.

public int? Order { get; set; }

Property Value

int?

Type

Field type.

public Type Type { get; }

Property Value

Type

Values

Mapping values.

public IEnumerable<FieldMappingValue> Values { get; set; }

Property Value

IEnumerable<FieldMappingValue>

ZeroAsNull

Zero as null.

public bool ZeroAsNull { get; set; }

Property Value

bool

Methods

ApplyDefaultValue(object)

Apply default value.

public void ApplyDefaultValue(object instance)

Parameters

instance object

Instance.

ApplyFileValue(object, string)

Apply value.

public void ApplyFileValue(object instance, string value)

Parameters

instance object

Instance.

value string

Field value.

Clone()

public abstract object Clone()

Returns

object

GetOrClone()

Get FieldMapping instance or clone dependent on IsMultiple.

public FieldMapping GetOrClone()

Returns

FieldMapping

Field.

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnApply(object, object)

Apply value.

protected abstract void OnApply(object instance, object value)

Parameters

instance object

Instance.

value object

Field value.

Reset()

Reset state.

public void Reset()

ToString()

public override string ToString()

Returns

string