C# Класс Clearwave.SqlDocDB.Client.Document.DocumentConvention

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

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

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