C# Class Clearwave.SqlDocDB.Client.Document.DocumentConvention

Afficher le fichier Open project: clearwavebuild/SqlDocDB Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
GetPropertiesForType ( Type type ) : IEnumerable

Method Details

CreateSerializer() public méthode

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

DefaultTransformTypeTagNameToDocumentKeyPrefix() public static méthode

public static DefaultTransformTypeTagNameToDocumentKeyPrefix ( string typeTagName ) : string
typeTagName string
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 ) : System.Guid
entity object The entity.
Résultat System.Guid

GetClrType() public méthode

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

GetClrTypeName() public méthode

Get the CLR type name to be stored in the entity metadata
public GetClrTypeName ( Type entityType ) : string
entityType System.Type
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