2 writes to Operations
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
JsonPatchDocumentOfT.cs (2)
37
Operations
= [];
44
Operations
= operations ?? throw new ArgumentNullException(nameof(operations));
47 references to Operations
Microsoft.AspNetCore.JsonPatch.SystemTextJson (30)
Converters\JsonConverterForJsonPatchDocumentOfT.cs (1)
63
foreach (var operation in value.
Operations
)
JsonPatchDocumentOfT.cs (29)
60
Operations
.Add(new Operation<TModel>(
84
Operations
.Add(new Operation<TModel>(
104
Operations
.Add(new Operation<TModel>(
123
Operations
.Add(new Operation<TModel>("remove", GetPath(path, null), from: null));
139
Operations
.Add(new Operation<TModel>(
157
Operations
.Add(new Operation<TModel>(
176
Operations
.Add(new Operation<TModel>(
198
Operations
.Add(new Operation<TModel>(
218
Operations
.Add(new Operation<TModel>(
238
Operations
.Add(new Operation<TModel>(
260
Operations
.Add(new Operation<TModel>(
280
Operations
.Add(new Operation<TModel>(
303
Operations
.Add(new Operation<TModel>(
327
Operations
.Add(new Operation<TModel>(
351
Operations
.Add(new Operation<TModel>(
377
Operations
.Add(new Operation<TModel>(
401
Operations
.Add(new Operation<TModel>(
423
Operations
.Add(new Operation<TModel>(
445
Operations
.Add(new Operation<TModel>(
469
Operations
.Add(new Operation<TModel>(
493
Operations
.Add(new Operation<TModel>(
519
Operations
.Add(new Operation<TModel>(
543
Operations
.Add(new Operation<TModel>(
565
Operations
.Add(new Operation<TModel>(
605
foreach (var op in
Operations
)
633
foreach (var op in
Operations
)
641
var allOps = new List<Operation>(
Operations
?.Count ?? 0);
643
if (
Operations
!= null)
645
foreach (var op in
Operations
)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (17)
JsonPatchDocumentJObjectTest.cs (12)
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"));
51
patch.
Operations
.Add(new Operation<ObjectWithJObject>("test", "/CustomData/Email", null, "foo@bar.com"));
52
patch.
Operations
.Add(new Operation<ObjectWithJObject>("add", "/CustomData/Name", null, "Bar Baz"));
68
patch.
Operations
.Add(new Operation<ObjectWithJObject>("copy", "/CustomData/UserName", "/CustomData/Email"));
84
patch.
Operations
.Add(new Operation<ObjectWithJObject>("remove", "/CustomData/LastName", null));
100
patch.
Operations
.Add(new Operation<ObjectWithJObject>("move", "/CustomData/LastName", "/CustomData/FirstName"));
117
patch.
Operations
.Add(new Operation<ObjectWithJObject>("add", "/CustomData/Name", null, "Foo"));
133
patch.
Operations
.Add(new Operation<ObjectWithJObject>("add", "/CustomData/Name", null, null));
150
patch.
Operations
.Add(new Operation<ObjectWithJObject>("replace", "/CustomData/Email", null, "foo@baz.com"));
166
patch.
Operations
.Add(new Operation<ObjectWithJObject>("replace", "/CustomData/Email", null, null));
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);