C# Class Raven.Client.Document.DocumentConvention

The set of conventions used by the DocumentStore which allow the users to customize the way the Raven client API behaves
显示文件 Open project: markrendle/ravendb Class Usage Examples

Public Methods

Method Description
CreateSerializer ( ) : JsonSerializer
DefaultTypeTagName ( Type t ) : string
DocumentConvention ( ) : System
GenerateDocumentKey ( object entity ) : string
GenerateDocumentKeyUsingIdentity ( DocumentConvention conventions, object entity ) : string
GetIdentityProperty ( Type type ) : PropertyInfo
GetTypeTagName ( Type type ) : string

Method Details

CreateSerializer() public method

public CreateSerializer ( ) : JsonSerializer
return Newtonsoft.Json.JsonSerializer

DefaultTypeTagName() public static method

public static DefaultTypeTagName ( Type t ) : string
t System.Type
return string

DocumentConvention() public method

public DocumentConvention ( ) : System
return System

GenerateDocumentKey() public method

public GenerateDocumentKey ( object entity ) : string
entity object
return string

GenerateDocumentKeyUsingIdentity() public static method

public static GenerateDocumentKeyUsingIdentity ( DocumentConvention conventions, object entity ) : string
conventions DocumentConvention
entity object
return string

GetIdentityProperty() public method

public GetIdentityProperty ( Type type ) : PropertyInfo
type System.Type
return System.Reflection.PropertyInfo

GetTypeTagName() public method

public GetTypeTagName ( Type type ) : string
type System.Type
return string