示例#1
0
        /// <summary>
        /// Drop database for MongoDb storage.
        /// </summary>
        /// <param name="storage">The storage to drop schema for.</param>
        public static void DropDatabase(this MongoDbStorage storage)
        {
            var url = new MongoDB.Driver.MongoUrl(TestConfig.Current.MongoDbConnectionString);

            storage.GetClient().DropDatabase(url.DatabaseName);
        }
 /// <summary>
 /// Drop database for MongoDb storage.
 /// </summary>
 /// <param name="storage">The storage to drop schema for.</param>
 public static void DropDatabase(this MongoDbStorage storage)
 {
     storage.GetClient().DropDatabase("MiniProfiler");
 }