Esempio n. 1
0
 /// <summary>
 /// 转移集合
 /// </summary>
 /// <param name="sourceKeyName"></param>
 /// <param name="sourceDbName"></param>
 /// <param name="sourceCollectionName"></param>
 /// <param name="sourceFilter"></param>
 /// <param name="targetKeyName"></param>
 /// <param name="targetDbName"></param>
 /// <param name="targetCollectionName"></param>
 /// <param name="needDeleteSource"></param>
 public static void MoveCollection(DataStorage sourceInst, string sourceDbName, string sourceCollectionName, string sourceFilter, DataStorage targetInst, string targetDbName, string targetCollectionName, bool needDeleteSource = false)
 {
     MongoDB.MoveCollection(sourceInst.mongo, sourceDbName, sourceCollectionName, sourceFilter, targetInst.mongo, targetDbName, targetCollectionName, needDeleteSource);
 }
Esempio n. 2
0
 /// <summary>
 /// 转移集合
 /// </summary>
 /// <param name="sourceKeyName"></param>
 /// <param name="sourceDbName"></param>
 /// <param name="sourceCollectionName"></param>
 /// <param name="sourceFilter"></param>
 /// <param name="targetKeyName"></param>
 /// <param name="targetDbName"></param>
 /// <param name="targetCollectionName"></param>
 /// <param name="needDeleteSource"></param>
 public static void MoveCollection(string sourceKeyName, string sourceDbName, string sourceCollectionName, string sourceFilter, string targetKeyName, string targetDbName, string targetCollectionName, bool needDeleteSource = false)
 {
     MongoDB.MoveCollection(sourceKeyName, sourceDbName, sourceCollectionName, sourceFilter, targetKeyName, targetDbName, targetCollectionName, needDeleteSource);
 }