C# Класс Glass.Mapper.Sc.DataMappers.SitecoreFieldLinkMapper

Class SitecoreFieldLinkMapper
Наследование: AbstractSitecoreFieldMapper
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetField ( Sitecore field, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : object

Gets the field.

GetFieldValue ( string fieldValue, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : object

Gets the field value.

SetField ( Field field, object value, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : void

Sets the field.

SetFieldValue ( object value, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : string

Sets the field value.

SitecoreFieldLinkMapper ( ) : System

Initializes a new instance of the SitecoreFieldLinkMapper class.

SitecoreFieldLinkMapper ( IUrlOptionsResolver urlOptionsResolver ) : System

Описание методов

GetField() публичный Метод

Gets the field.
public GetField ( Sitecore field, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : object
field Sitecore The field.
config Glass.Mapper.Sc.Configuration.SitecoreFieldConfiguration The config.
context SitecoreDataMappingContext The context.
Результат object

GetFieldValue() публичный Метод

Gets the field value.
public GetFieldValue ( string fieldValue, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : object
fieldValue string The field value.
config Glass.Mapper.Sc.Configuration.SitecoreFieldConfiguration The config.
context SitecoreDataMappingContext The context.
Результат object

SetField() публичный Метод

Sets the field.
/// No item with ID {0}. Can not update Link linkField.Formatted(newId) /// or /// No item with ID {0}. Can not update Link linkField.Formatted(newId) ///
public SetField ( Field field, object value, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : void
field Field The field.
value object The value.
config Glass.Mapper.Sc.Configuration.SitecoreFieldConfiguration The config.
context SitecoreDataMappingContext The context.
Результат void

SetFieldValue() публичный Метод

Sets the field value.
public SetFieldValue ( object value, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : string
value object The value.
config Glass.Mapper.Sc.Configuration.SitecoreFieldConfiguration The config.
context SitecoreDataMappingContext The context.
Результат string

SitecoreFieldLinkMapper() публичный Метод

Initializes a new instance of the SitecoreFieldLinkMapper class.
public SitecoreFieldLinkMapper ( ) : System
Результат System

SitecoreFieldLinkMapper() публичный Метод

public SitecoreFieldLinkMapper ( IUrlOptionsResolver urlOptionsResolver ) : System
urlOptionsResolver IUrlOptionsResolver
Результат System