Source/MongoDB/a_mongo_db_instance.cs
/// <summary>
/// Exports the contents of a collection to a file.
/// </summary>
/// <param name="fileName">Filename and path of the output file.</param>
/// <param name="collectionName">Collection to export.</param>
/// <typeparam name="T">Document type.</typeparam>
Exports the contents of a collection to a file.
Exports the contents of a collection to a file .
protected static void Export<T>(string fileName, string collectionName = null)
        {
            var collection = collectionName ?? typeof(T).FullName;
            runner.Export(database_name, collection, fileName);
        }
protected static void Export < T > ( string fileName , string collectionName = null ) { var collection = collectionName ?? typeof ( T ) . FullName ; runner . Export ( database_name , collection , fileName ) ; }
Exports the contents of a collection to a file.
Exports the contents of a collection to a file .
fileName
string
Filename and path of the output file.
Filename and path of the output file .
collectionName
string
Collection to export.
Collection to export .
typeparam
None