C# Class Mongo.Context.Tests.TestData

Afficher le fichier Open project: object/MongOData Class Usage Examples

Méthodes publiques

Méthode Description
Clean ( ) : void
CreateDatabase ( ) : MongoDatabase
OpenDatabase ( ) : MongoDatabase
PopulateWithBsonIdTypes ( bool clearDatabase = true ) : void
PopulateWithCategoriesAndProducts ( bool clearDatabase = true ) : void
PopulateWithClrTypes ( bool clearDatabase = true ) : void
PopulateWithJsonSamples ( bool clearDatabase = true ) : void
PopulateWithVariableTypes ( bool clearDatabase = true ) : void

Private Methods

Méthode Description
GetDatabase ( bool clear ) : MongoDatabase
GetDatabaseName ( string connectionString ) : string
GetResourceAsString ( string resourceName ) : string

Method Details

Clean() public static méthode

public static Clean ( ) : void
Résultat void

CreateDatabase() public static méthode

public static CreateDatabase ( ) : MongoDatabase
Résultat MongoDatabase

OpenDatabase() public static méthode

public static OpenDatabase ( ) : MongoDatabase
Résultat MongoDatabase

PopulateWithBsonIdTypes() public static méthode

public static PopulateWithBsonIdTypes ( bool clearDatabase = true ) : void
clearDatabase bool
Résultat void

PopulateWithCategoriesAndProducts() public static méthode

public static PopulateWithCategoriesAndProducts ( bool clearDatabase = true ) : void
clearDatabase bool
Résultat void

PopulateWithClrTypes() public static méthode

public static PopulateWithClrTypes ( bool clearDatabase = true ) : void
clearDatabase bool
Résultat void

PopulateWithJsonSamples() public static méthode

public static PopulateWithJsonSamples ( bool clearDatabase = true ) : void
clearDatabase bool
Résultat void

PopulateWithVariableTypes() public static méthode

public static PopulateWithVariableTypes ( bool clearDatabase = true ) : void
clearDatabase bool
Résultat void