40 instantiations of Operation
Microsoft.AspNetCore.JsonPatch (24)
JsonPatchDocumentOfT.cs (24)
57
Operations.Add(new
Operation
<TModel>(
81
Operations.Add(new
Operation
<TModel>(
101
Operations.Add(new
Operation
<TModel>(
120
Operations.Add(new
Operation
<TModel>("remove", GetPath(path, null), from: null));
136
Operations.Add(new
Operation
<TModel>(
154
Operations.Add(new
Operation
<TModel>(
173
Operations.Add(new
Operation
<TModel>(
195
Operations.Add(new
Operation
<TModel>(
215
Operations.Add(new
Operation
<TModel>(
235
Operations.Add(new
Operation
<TModel>(
257
Operations.Add(new
Operation
<TModel>(
277
Operations.Add(new
Operation
<TModel>(
300
Operations.Add(new
Operation
<TModel>(
324
Operations.Add(new
Operation
<TModel>(
348
Operations.Add(new
Operation
<TModel>(
374
Operations.Add(new
Operation
<TModel>(
398
Operations.Add(new
Operation
<TModel>(
420
Operations.Add(new
Operation
<TModel>(
442
Operations.Add(new
Operation
<TModel>(
466
Operations.Add(new
Operation
<TModel>(
490
Operations.Add(new
Operation
<TModel>(
516
Operations.Add(new
Operation
<TModel>(
540
Operations.Add(new
Operation
<TModel>(
562
Operations.Add(new
Operation
<TModel>(
Microsoft.AspNetCore.JsonPatch.Tests (12)
JsonPatchDocumentJObjectTest.cs (12)
23
patch.Operations.Add(new
Operation
<ObjectWithJObject>("add", "/CustomData/Emails/-", null, "foo@baz.com"));
39
patch.Operations.Add(new
Operation
<ObjectWithJObject>("test", "/CustomData/Email", null, "foo@baz.com"));
40
patch.Operations.Add(new
Operation
<ObjectWithJObject>("add", "/CustomData/Name", null, "Bar Baz"));
53
patch.Operations.Add(new
Operation
<ObjectWithJObject>("test", "/CustomData/Email", null, "foo@bar.com"));
54
patch.Operations.Add(new
Operation
<ObjectWithJObject>("add", "/CustomData/Name", null, "Bar Baz"));
70
patch.Operations.Add(new
Operation
<ObjectWithJObject>("copy", "/CustomData/UserName", "/CustomData/Email"));
86
patch.Operations.Add(new
Operation
<ObjectWithJObject>("remove", "/CustomData/LastName", null));
102
patch.Operations.Add(new
Operation
<ObjectWithJObject>("move", "/CustomData/LastName", "/CustomData/FirstName"));
119
patch.Operations.Add(new
Operation
<ObjectWithJObject>("add", "/CustomData/Name", null, "Foo"));
135
patch.Operations.Add(new
Operation
<ObjectWithJObject>("add", "/CustomData/Name", null, null));
151
patch.Operations.Add(new
Operation
<ObjectWithJObject>("replace", "/CustomData/Email", null, "foo@baz.com"));
167
patch.Operations.Add(new
Operation
<ObjectWithJObject>("replace", "/CustomData/Email", null, null));
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (4)
JsonPatchExtensionsTest.cs (4)
16
var operation = new
Operation
<Customer>("add", "CustomerId", from: null, value: "TestName");
34
var operation = new
Operation
<Customer>("add", "CustomerId", from: null, value: "TestName");
53
patch.Operations.Add(new
Operation
<Customer>("replace", "/CustomerName", null, "James"));
78
patch.Operations.Add(new
Operation
<Customer>(op, path, from, value));
9 references to Operation
Microsoft.AspNetCore.JsonPatch (7)
Converters\TypedJsonPatchDocumentConverter.cs (1)
33
var genericOperation = typeof(
Operation
<>);
JsonPatchDocumentOfT.cs (6)
27
public List<
Operation
<TModel>> Operations { get; private set; }
34
Operations = new List<
Operation
<TModel>>();
39
public JsonPatchDocument(List<
Operation
<TModel>> operations, IContractResolver contractResolver)
602
foreach (
var
op in Operations)
630
foreach (
var
op in Operations)
642
foreach (
var
op in Operations)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
JsonPatchExtensionsTest.cs (2)
16
var
operation = new Operation<Customer>("add", "CustomerId", from: null, value: "TestName");
34
var
operation = new Operation<Customer>("add", "CustomerId", from: null, value: "TestName");