Class FieldMapping
Описание импортируемого поля.
Namespace: StockSharp.Algo.Import
Assembly: StockSharp.Algo.dll
Syntax
public abstract class FieldMapping : NotifiableObject, IPersistable, ICloneable
Constructors
FieldMapping(String, String, String, Type)
Создать FieldMapping.
Declaration
protected FieldMapping(string name, string displayName, string description, Type type)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name. |
String | displayName | Отображаемое имя. |
String | description | Детальное описание. |
Type | type | Тип поля. |
Properties
AdapterType
Adapter.
Declaration
public Type AdapterType { get; set; }
Property Value
Type | Description |
---|---|
Type |
DefaultValue
Значение по-умолчанию.
Declaration
public string DefaultValue { get; set; }
Property Value
Type | Description |
---|---|
String |
Description
Детальное описание.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
String |
DisplayName
Отображаемое имя.
Declaration
public string DisplayName { get; }
Property Value
Type | Description |
---|---|
String |
Format
Формат даты.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
String |
IsAdapter
AdapterType обязателен.
Declaration
public bool IsAdapter { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsEnabled
Включено ли поле.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsExtended
Расширенное ли поле.
Declaration
public bool IsExtended { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsMultiple
Доступно множественное количество объектов поля.
Declaration
public bool IsMultiple { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsRequired
Обязательное ли поле.
Declaration
public bool IsRequired { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Name
Name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Order
Field order.
Declaration
public Nullable<int> Order { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
Type
Тип поля.
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
Values
Значения преобразования.
Declaration
public IEnumerable<FieldMappingValue> Values { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<FieldMappingValue> |
ZeroAsNull
Ноль как null.
Declaration
public bool ZeroAsNull { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
ApplyDefaultValue(Object)
Применить значение по-умолчанию.
Declaration
public void ApplyDefaultValue(object instance)
Parameters
Type | Name | Description |
---|---|---|
Object | instance | Объект. |
ApplyFileValue(Object, String)
Применить значение.
Declaration
public void ApplyFileValue(object instance, string value)
Parameters
Type | Name | Description |
---|---|---|
Object | instance | Объект. |
String | value | Значение поля. |
Clone()
Declaration
public abstract object Clone()
Returns
Type | Description |
---|---|
Object |
GetOrClone()
Получить объект FieldMapping или склонировать, в зависимости от IsMultiple.
Declaration
public FieldMapping GetOrClone()
Returns
Type | Description |
---|---|
FieldMapping | Field. |
Load(SettingsStorage)
Загрузить настройки.
Declaration
public void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
OnApply(Object, Object)
Применить значение.
Declaration
protected abstract void OnApply(object instance, object value)
Parameters
Type | Name | Description |
---|---|---|
Object | instance | Объект. |
Object | value | Значение поля. |
Reset()
Reset state.
Declaration
public void Reset()
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Implements
Ecng.Serialization.IPersistable