C# 클래스 Subtext.BlogML.Conversion.IdConversionStrategy

파일 보기 프로젝트 열기: ayende/Subtext 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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