示例#1
0
        public async Task UpdateAsync(string id, IUpdateDefinition updateDefinition)
        {
            var command   = CommandBuilder.BuildUpdate(collectionName, id, updateDefinition.Render());
            var rawResult = await sender.SendAsync(command).ConfigureAwait(false);

            ResultParser.Parse(rawResult);
        }
示例#2
0
 public static IUpdateDefinition Unset(this IUpdateDefinition source, string field)
 => new CombineUpdateDefinition(source, new UnsetUpdateDefinition(field));
示例#3
0
 public static IUpdateDefinition Set(this IUpdateDefinition source, string field, string value)
 => new CombineUpdateDefinition(source, new SetUpdateDefinition(field, value));