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
stringName.
getDisplayName
Func<string>Display name.
getDescription
Func<string>Description.
type
TypeField type.
Fields
GetDescription
Description.
protected readonly Func<string> GetDescription
Field Value
GetDisplayName
Display name.
protected readonly Func<string> GetDisplayName
Field Value
Properties
AdapterType
Adapter.
public Type AdapterType { get; set; }
Property Value
DefaultValue
Default value.
public string DefaultValue { get; set; }
Property Value
Description
Description.
public string Description { get; }
Property Value
DisplayName
Display name.
public string DisplayName { get; }
Property Value
Format
Date format.
public string Format { get; set; }
Property Value
IsAdapter
AdapterType required.
public bool IsAdapter { get; set; }
Property Value
IsEnabled
Is field enabled.
public bool IsEnabled { get; set; }
Property Value
IsExtended
Is field extended.
public bool IsExtended { get; set; }
Property Value
IsMultiple
Multiple field's instancies allowed.
public bool IsMultiple { get; }
Property Value
IsRequired
Is field required.
public bool IsRequired { get; set; }
Property Value
Name
Name.
public string Name { get; }
Property Value
Order
Field order.
public int? Order { get; set; }
Property Value
- int?
Type
Field type.
public Type Type { get; }
Property Value
Values
Mapping values.
public IEnumerable<FieldMappingValue> Values { get; set; }
Property Value
ZeroAsNull
Zero as null.
public bool ZeroAsNull { get; set; }
Property Value
Methods
ApplyDefaultValue(object)
Apply default value.
public void ApplyDefaultValue(object instance)
Parameters
instance
objectInstance.
ApplyFileValue(object, string)
Apply value.
public void ApplyFileValue(object instance, string value)
Parameters
Clone()
public abstract object Clone()
Returns
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
SettingsStorageSettings storage.
OnApply(object, object)
Apply value.
protected abstract void OnApply(object instance, object value)
Parameters
Reset()
Reset state.
public void Reset()
ToString()
public override string ToString()