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

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

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

Метод Описание
CanHandle ( AbstractPropertyConfiguration configuration, Context context ) : bool

Indicates that the data mapper will mapper to and from the property

MapToCms ( AbstractDataMappingContext mappingContext ) : void

Maps data from the .Net property value to the CMS value

MapToProperty ( AbstractDataMappingContext mappingContext ) : object

Maps data from the CMS value to the .Net property value

Setup ( Glass.Mapper.Pipelines.DataMapperResolver.DataMapperResolverArgs args ) : void

Sets up the data mapper for a particular property

SitecoreInfoMapper ( ) : System

Initializes a new instance of the SitecoreInfoMapper class.

SitecoreInfoMapper ( IMediaUrlOptionsResolver mediaUrlOptionsResolver, IUrlOptionsResolver urlOptionsResolver ) : System

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

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

Indicates that the data mapper will mapper to and from the property
public CanHandle ( AbstractPropertyConfiguration configuration, Context context ) : bool
configuration Glass.Mapper.Configuration.AbstractPropertyConfiguration The configuration.
context Context The context.
Результат bool

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

Maps data from the .Net property value to the CMS value
/// Can't set DisplayName. Value is not of type System.String /// or /// Can't set Name. Value is not of type System.String /// or /// You can not save SitecoreInfo {0}.Formatted(scConfig.Type) /// You can not set an empty or null Item name
public MapToCms ( AbstractDataMappingContext mappingContext ) : void
mappingContext AbstractDataMappingContext The mapping context.
Результат void

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

Maps data from the CMS value to the .Net property value
SitecoreInfoType {0} not supported.Formatted(scConfig.Type)
public MapToProperty ( AbstractDataMappingContext mappingContext ) : object
mappingContext AbstractDataMappingContext The mapping context.
Результат object

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

Sets up the data mapper for a particular property
public Setup ( Glass.Mapper.Pipelines.DataMapperResolver.DataMapperResolverArgs args ) : void
args Glass.Mapper.Pipelines.DataMapperResolver.DataMapperResolverArgs The args.
Результат void

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

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

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

public SitecoreInfoMapper ( IMediaUrlOptionsResolver mediaUrlOptionsResolver, IUrlOptionsResolver urlOptionsResolver ) : System
mediaUrlOptionsResolver IMediaUrlOptionsResolver
urlOptionsResolver IUrlOptionsResolver
Результат System