2 writes to Operations
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
JsonPatchDocumentOfT.cs (2)
35
Operations
= new List<Operation<TModel>>();
42
Operations
= operations ?? throw new ArgumentNullException(nameof(operations));
38 references to Operations
Microsoft.AspNetCore.JsonPatch.SystemTextJson (30)
Converters\JsonConverterForJsonPatchDocumentOfT.cs (1)
63
foreach (var operation in value.
Operations
)
JsonPatchDocumentOfT.cs (29)
58
Operations
.Add(new Operation<TModel>(
82
Operations
.Add(new Operation<TModel>(
102
Operations
.Add(new Operation<TModel>(
121
Operations
.Add(new Operation<TModel>("remove", GetPath(path, null), from: null));
137
Operations
.Add(new Operation<TModel>(
155
Operations
.Add(new Operation<TModel>(
174
Operations
.Add(new Operation<TModel>(
196
Operations
.Add(new Operation<TModel>(
216
Operations
.Add(new Operation<TModel>(
236
Operations
.Add(new Operation<TModel>(
258
Operations
.Add(new Operation<TModel>(
278
Operations
.Add(new Operation<TModel>(
301
Operations
.Add(new Operation<TModel>(
325
Operations
.Add(new Operation<TModel>(
349
Operations
.Add(new Operation<TModel>(
375
Operations
.Add(new Operation<TModel>(
399
Operations
.Add(new Operation<TModel>(
421
Operations
.Add(new Operation<TModel>(
443
Operations
.Add(new Operation<TModel>(
467
Operations
.Add(new Operation<TModel>(
491
Operations
.Add(new Operation<TModel>(
517
Operations
.Add(new Operation<TModel>(
541
Operations
.Add(new Operation<TModel>(
563
Operations
.Add(new Operation<TModel>(
603
foreach (var op in
Operations
)
631
foreach (var op in
Operations
)
639
var allOps = new List<Operation>(
Operations
?.Count ?? 0);
641
if (
Operations
!= null)
643
foreach (var op in
Operations
)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (8)
JsonPatchDocumentJObjectTest.cs (3)
21
patch.
Operations
.Add(new Operation<ObjectWithJObject>("add", "/CustomData/Emails/-", null, "foo@baz.com"));
37
patch.
Operations
.Add(new Operation<ObjectWithJObject>("test", "/CustomData/Email", null, "foo@baz.com"));
38
patch.
Operations
.Add(new Operation<ObjectWithJObject>("add", "/CustomData/Name", null, "Bar Baz"));
JsonPatchDocumentJsonPropertyAttributeTest.cs (3)
22
var pathToCheck = patchDocument.
Operations
.First().path;
53
var fromPath = patchDocument.
Operations
.First().from;
55
var toPath = patchDocument.
Operations
.First().path;
JsonPatchDocumentTest.cs (2)
101
doc.
Operations
.Add(new Operations.Operation<Organization>("add", "/Employees/0/AnnualSalary", "", 100));
254
document.
Operations
.Add(operation);