C# Class EtoolTech.MongoDB.Mapper.MongoMapperHelper

Mostra file Open project: emiliotorrens/MongoMapper.NET Class Usage Examples

Public Methods

Method Description
ConvertFieldName ( string ObjName, List FieldNames ) : List
ConvertFieldName ( string ObjName, string FieldName ) : string
Db ( string ObjName ) : IMongoDatabase
Db ( string ObjName, bool Primary ) : IMongoDatabase
GetFieldDefaultValue ( string ObjName, string FieldName ) : object
GetPrimaryKey ( Type T ) : IEnumerable
GetTTLIndex ( Type T ) : string
ValidateType ( Type T ) : void

Private Methods

Method Description
CreateIndexes ( Type ClassType ) : void
GetExistinIndexNames ( Type ClassType ) : List
GetIndexes ( Type T ) : IEnumerable
RebuildClass ( Type ClassType, bool RepairCollection ) : void
RegisterCustomDiscriminatorTypes ( Type ClassType ) : void

Method Details

ConvertFieldName() public static method

public static ConvertFieldName ( string ObjName, List FieldNames ) : List
ObjName string
FieldNames List
return List

ConvertFieldName() public static method

public static ConvertFieldName ( string ObjName, string FieldName ) : string
ObjName string
FieldName string
return string

Db() public static method

public static Db ( string ObjName ) : IMongoDatabase
ObjName string
return IMongoDatabase

Db() public static method

public static Db ( string ObjName, bool Primary ) : IMongoDatabase
ObjName string
Primary bool
return IMongoDatabase

GetFieldDefaultValue() public static method

public static GetFieldDefaultValue ( string ObjName, string FieldName ) : object
ObjName string
FieldName string
return object

GetPrimaryKey() public static method

public static GetPrimaryKey ( Type T ) : IEnumerable
T System.Type
return IEnumerable

GetTTLIndex() public static method

public static GetTTLIndex ( Type T ) : string
T System.Type
return string

ValidateType() public static method

public static ValidateType ( Type T ) : void
T System.Type
return void