C# Класс Glass.Mapper.AbstractDataMapper

A data mapper converts data from the CMS stored value to the .Net data type
Показать файл Открыть проект

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

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

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

MapCmsToProperty ( Glass.Mapper.AbstractDataMappingContext mappingContext ) : void

Takes CMS data and writes it to the property

MapPropertyToCms ( Glass.Mapper.AbstractDataMappingContext mappingContext ) : void

Takes a Property value and writes it to a CMS value

MapToCms ( Glass.Mapper.AbstractDataMappingContext mappingContext ) : void

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

MapToProperty ( Glass.Mapper.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

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

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

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

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

Takes CMS data and writes it to the property
public MapCmsToProperty ( Glass.Mapper.AbstractDataMappingContext mappingContext ) : void
mappingContext Glass.Mapper.AbstractDataMappingContext The mapping context.
Результат void

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

Takes a Property value and writes it to a CMS value
public MapPropertyToCms ( Glass.Mapper.AbstractDataMappingContext mappingContext ) : void
mappingContext Glass.Mapper.AbstractDataMappingContext The mapping context.
Результат void

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

Maps data from the .Net property value to the CMS value
public abstract MapToCms ( Glass.Mapper.AbstractDataMappingContext mappingContext ) : void
mappingContext Glass.Mapper.AbstractDataMappingContext The mapping context.
Результат void

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

Maps data from the CMS value to the .Net property value
public abstract MapToProperty ( Glass.Mapper.AbstractDataMappingContext mappingContext ) : object
mappingContext Glass.Mapper.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