C# 클래스 Clearwave.SqlDocDB.Client.Document.DocumentConvention

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

공개 메소드들

메소드 설명
CreateSerializer ( ) : JsonSerializer

Creates the serializer.

DefaultTransformTypeTagNameToDocumentKeyPrefix ( string typeTagName ) : string
DefaultTypeTagName ( Type t ) : string

Get the default tag name for the specified type.

DocumentConvention ( ) : System

Initializes a new instance of the DocumentConvention class.

GenerateDocumentKey ( object entity ) : System.Guid

Generates the document key.

GetClrType ( System.Guid id, RavenJObject document, RavenJObject metadata ) : string

Get the CLR type (if exists) from the document

GetClrTypeName ( Type entityType ) : string

Get the CLR type name to be stored in the entity metadata

GetIdentityProperty ( Type type ) : PropertyInfo

Gets the identity property.

GetTypeTagName ( Type type ) : string

Gets the name of the type tag.

비공개 메소드들

메소드 설명
GetPropertiesForType ( Type type ) : IEnumerable

메소드 상세

CreateSerializer() 공개 메소드

Creates the serializer.
public CreateSerializer ( ) : JsonSerializer
리턴 Newtonsoft.Json.JsonSerializer

DefaultTransformTypeTagNameToDocumentKeyPrefix() 공개 정적인 메소드

public static DefaultTransformTypeTagNameToDocumentKeyPrefix ( string typeTagName ) : string
typeTagName string
리턴 string

DefaultTypeTagName() 공개 정적인 메소드

Get the default tag name for the specified type.
public static DefaultTypeTagName ( Type t ) : string
t System.Type
리턴 string

DocumentConvention() 공개 메소드

Initializes a new instance of the DocumentConvention class.
public DocumentConvention ( ) : System
리턴 System

GenerateDocumentKey() 공개 메소드

Generates the document key.
public GenerateDocumentKey ( object entity ) : System.Guid
entity object The entity.
리턴 System.Guid

GetClrType() 공개 메소드

Get the CLR type (if exists) from the document
public GetClrType ( System.Guid id, RavenJObject document, RavenJObject metadata ) : string
id System.Guid
document RavenJObject
metadata RavenJObject
리턴 string

GetClrTypeName() 공개 메소드

Get the CLR type name to be stored in the entity metadata
public GetClrTypeName ( Type entityType ) : string
entityType System.Type
리턴 string

GetIdentityProperty() 공개 메소드

Gets the identity property.
public GetIdentityProperty ( Type type ) : PropertyInfo
type System.Type The type.
리턴 System.Reflection.PropertyInfo

GetTypeTagName() 공개 메소드

Gets the name of the type tag.
public GetTypeTagName ( Type type ) : string
type System.Type The type.
리턴 string