C# 클래스 Raven.Light.Conventions.DocumentConvention

The set of conventions used by the EmbeddedDocumentStore which allow the users to customize the way the Raven client API behaves
파일 보기 프로젝트 열기: hibernating-rhinos/Raven.Light 1 사용 예제들

공개 메소드들

메소드 설명
CreateSerializer ( ) : JsonSerializer

Creates the serializer.

DefaultFindFullDocumentKeyFromValueTypeIdentifier ( ValueType id, Type type ) : string

Find the full document name assuming that we are using the standard conventions for generating a document key

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 ) : string

Generates the document key.

GenerateDocumentKeyUsingIdentity ( DocumentConvention conventions, object entity ) : string

Generates the document key using identity.

GetClrType ( string id, RavenJObject document, RavenJObject metadata ) : string

Get the CLR type (if exists) from the document

GetIdentityProperty ( Type type ) : PropertyInfo

Gets the identity property.

GetTypeTagName ( Type type ) : string

Gets the name of the type tag.

메소드 상세

CreateSerializer() 공개 메소드

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

DefaultFindFullDocumentKeyFromValueTypeIdentifier() 공개 메소드

Find the full document name assuming that we are using the standard conventions for generating a document key
public DefaultFindFullDocumentKeyFromValueTypeIdentifier ( ValueType id, Type type ) : string
id System.ValueType
type System.Type
리턴 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 ) : string
entity object The entity.
리턴 string

GenerateDocumentKeyUsingIdentity() 공개 정적인 메소드

Generates the document key using identity.
public static GenerateDocumentKeyUsingIdentity ( DocumentConvention conventions, object entity ) : string
conventions DocumentConvention The conventions.
entity object The entity.
리턴 string

GetClrType() 공개 메소드

Get the CLR type (if exists) from the document
public GetClrType ( string id, RavenJObject document, RavenJObject metadata ) : string
id string
document RavenJObject
metadata RavenJObject
리턴 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