C# Класс Subtext.BlogML.Conversion.IdConversionStrategy

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Empty IdConversionStrategy

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

Метод Описание
GetConvertedId ( string scope, string originalId ) : string

Converts the specified id into a new Id. If we've already converted this id, then returns the original conversion. This method is for creating outgoing ids.

Защищенные методы

Метод Описание
Generate ( string scope, string originalId ) : string

Generates a new id for the specified scope. The originalId may be ignored if not needed as a "seed" value.

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

Generate() защищенный абстрактный Метод

Generates a new id for the specified scope. The originalId may be ignored if not needed as a "seed" value.
protected abstract Generate ( string scope, string originalId ) : string
scope string The scope for the id. For example, for an auto-incrementing /// int id in a table, this might be the table name. This is how we can distinguish /// between two ids that might be the same.
originalId string This can be used as the seed for the generated id.
Результат string

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

Converts the specified id into a new Id. If we've already converted this id, then returns the original conversion. This method is for creating outgoing ids.
public GetConvertedId ( string scope, string originalId ) : string
scope string The scope for the id. For example, for an auto-incrementing /// int id in a table, this might be the table name. This is how we can distinguish /// between two ids that might be the same.
originalId string
Результат string

Описание свойств

Empty публичное статическое свойство

public static IdConversionStrategy,Subtext.BlogML.Conversion Empty
Результат IdConversionStrategy