C# Class 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
Afficher le fichier Open project: hibernating-rhinos/Raven.Light Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

CreateSerializer() public méthode

Creates the serializer.
public CreateSerializer ( ) : JsonSerializer
Résultat Newtonsoft.Json.JsonSerializer

DefaultFindFullDocumentKeyFromValueTypeIdentifier() public méthode

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
Résultat string

DefaultTypeTagName() public static méthode

Get the default tag name for the specified type.
public static DefaultTypeTagName ( Type t ) : string
t System.Type
Résultat string

DocumentConvention() public méthode

Initializes a new instance of the DocumentConvention class.
public DocumentConvention ( ) : System
Résultat System

GenerateDocumentKey() public méthode

Generates the document key.
public GenerateDocumentKey ( object entity ) : string
entity object The entity.
Résultat string

GenerateDocumentKeyUsingIdentity() public static méthode

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

GetClrType() public méthode

Get the CLR type (if exists) from the document
public GetClrType ( string id, RavenJObject document, RavenJObject metadata ) : string
id string
document RavenJObject
metadata RavenJObject
Résultat string

GetIdentityProperty() public méthode

Gets the identity property.
public GetIdentityProperty ( Type type ) : PropertyInfo
type System.Type The type.
Résultat System.Reflection.PropertyInfo

GetTypeTagName() public méthode

Gets the name of the type tag.
public GetTypeTagName ( Type type ) : string
type System.Type The type.
Résultat string