Exemple #1
0
 /// <summary>
 /// 下载文件
 /// </summary>
 /// <param name="id">文件id</param>
 /// <param name="stream">文件流</param>
 public static void DownloadFile <TMongoFileType>(string id, Stream stream) where TMongoFileType : IMongoFile
 {
     EntityOperationExtensions.DBDownloadGridFS <TMongoFileType>(id, stream);
 }
Exemple #2
0
 /// <summary>
 /// 下载文件
 /// </summary>
 /// <param name="id">文件id</param>
 /// <param name="localFileName">本地路径(绝对路径)</param>
 public static void DownloadFile <TMongoFileType>(string id, string localFileName) where TMongoFileType : IMongoFile
 {
     EntityOperationExtensions.DBDownloadGridFS <TMongoFileType>(id, localFileName);
 }