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
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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