C# Class EtoolTech.MongoDB.Mapper.MongoMapperHelper

Afficher le fichier Open project: emiliotorrens/MongoMapper.NET Class Usage Examples

Méthodes publiques

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

Méthode 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 méthode

public static ConvertFieldName ( string ObjName, List FieldNames ) : List
ObjName string
FieldNames List
Résultat List

ConvertFieldName() public static méthode

public static ConvertFieldName ( string ObjName, string FieldName ) : string
ObjName string
FieldName string
Résultat string

Db() public static méthode

public static Db ( string ObjName ) : IMongoDatabase
ObjName string
Résultat IMongoDatabase

Db() public static méthode

public static Db ( string ObjName, bool Primary ) : IMongoDatabase
ObjName string
Primary bool
Résultat IMongoDatabase

GetFieldDefaultValue() public static méthode

public static GetFieldDefaultValue ( string ObjName, string FieldName ) : object
ObjName string
FieldName string
Résultat object

GetPrimaryKey() public static méthode

public static GetPrimaryKey ( Type T ) : IEnumerable
T System.Type
Résultat IEnumerable

GetTTLIndex() public static méthode

public static GetTTLIndex ( Type T ) : string
T System.Type
Résultat string

ValidateType() public static méthode

public static ValidateType ( Type T ) : void
T System.Type
Résultat void