コード例 #1
0
        private async Task <IDictionary <string, DocumentInfo> > BulkUpdateInternal(Action <IBulkUpdateBatch> updateCommandBuilder)
        {
            var unitOfWork = new BulkUpdateBatch(uriConstructor, parent.Settings.Serializer);

            updateCommandBuilder(unitOfWork);
            return(unitOfWork.IsEmpty
                                ? new Dictionary <string, DocumentInfo>(0)
                                : await unitOfWork.Execute(request => parent.RequestCouchDb(request)));
        }
コード例 #2
0
ファイル: DatabaseApi.cs プロジェクト: artikh/CouchDude
		private async Task<IDictionary<string, DocumentInfo>> BulkUpdateInternal(Action<IBulkUpdateBatch> updateCommandBuilder)
		{
			var unitOfWork = new BulkUpdateBatch(uriConstructor, parent.Settings.Serializer);
			updateCommandBuilder(unitOfWork);
			return unitOfWork.IsEmpty
				? new Dictionary<string, DocumentInfo>(0)
				: await unitOfWork.Execute(request => parent.RequestCouchDb(request));
		}