35 instantiations of Operation
Microsoft.AspNetCore.JsonPatch.SystemTextJson (24)
JsonPatchDocumentOfT.cs (24)
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>(
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (11)
JsonPatchDocumentJObjectTest.cs (9)
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"));
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));
JsonPatchDocumentTest.cs (2)
101
doc.Operations.Add(new Operations.
Operation
<Organization>("add", "/Employees/0/AnnualSalary", "", 100));
248
var operation = new
Operation
<SimpleObject>
19 references to Operation
Microsoft.AspNetCore.JsonPatch.SystemTextJson (15)
Converters\JsonConverterForJsonPatchDocumentOfT.cs (9)
15
private static JsonConverter<
Operation
<T>> GetConverter(JsonSerializerOptions options) =>
16
(JsonConverter<
Operation
<T>>)options.GetConverter(typeof(
Operation
<T>));
35
List<
Operation
<T>> ops = [];
38
JsonConverter<
Operation
<T>> operationConverter = GetConverter(options);
41
var
op = operationConverter.Read(ref reader, typeof(
Operation
<T>), options);
61
JsonConverter<
Operation
<T>> operationConverter = GetConverter(options);
63
foreach (
var
operation in value.Operations)
JsonPatchDocumentOfT.cs (6)
28
public List<
Operation
<TModel>> Operations { get; private set; }
35
Operations = new List<
Operation
<TModel>>();
40
public JsonPatchDocument(List<
Operation
<TModel>> operations, JsonSerializerOptions serializerOptions)
603
foreach (
var
op in Operations)
631
foreach (
var
op in Operations)
643
foreach (
var
op in Operations)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (4)
JsonPatchDocumentJObjectTest.cs (3)
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"));
JsonPatchDocumentTest.cs (1)
248
var
operation = new Operation<SimpleObject>