-
Notifications
You must be signed in to change notification settings - Fork 40
/
ISaveChangesInterceptor.xml
435 lines (435 loc) · 44.3 KB
/
ISaveChangesInterceptor.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
<Type Name="ISaveChangesInterceptor" FullName="Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor">
<TypeSignature Language="C#" Value="public interface ISaveChangesInterceptor : Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract ISaveChangesInterceptor implements class Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor" FrameworkAlternate="efcore-5.0;efcore-6.0;efcore-7.0" />
<TypeSignature Language="DocId" Value="T:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor" />
<TypeSignature Language="VB.NET" Value="Public Interface ISaveChangesInterceptor
Implements IInterceptor" />
<TypeSignature Language="F#" Value="type ISaveChangesInterceptor = interface
 interface IInterceptor" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract beforefieldinit ISaveChangesInterceptor implements class Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor" FrameworkAlternate="efcore-8.0" />
<AssemblyInfo>
<AssemblyName>Microsoft.EntityFrameworkCore</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor</InterfaceName>
</Interface>
</Interfaces>
<Docs>
<summary>
Allows interception of the <see cref="O:DbContext.SaveChanges" /> and <see cref="O:DbContext.SaveChangesAync" /> methods.
</summary>
<remarks>
<para>
SaveChanges interceptors can be used to view, change, or suppress execution of the SaveChanges call and
modify the result before it is returned to EF.
</para>
<para>
Consider inheriting from <see cref="T:Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesInterceptor" /> if not implementing all methods.
</para>
<para>
Use <see cref="M:Microsoft.EntityFrameworkCore.DbContextOptionsBuilder.AddInterceptors(Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor[])" />
to register application interceptors.
</para>
<para>
Extensions can also register interceptors in the internal service provider.
If both injected and application interceptors are found, then the injected interceptors are run in the
order that they are resolved from the service provider, and then the application interceptors are run last.
</para>
<para>
See <see href="https://aka.ms/efcore-docs-interceptors">EF Core interceptors</see> for more information and examples.
</para>
</remarks>
</Docs>
<Members>
<Member MemberName="SaveChangesCanceled">
<MemberSignature Language="C#" Value="public virtual void SaveChangesCanceled (Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData eventData);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void SaveChangesCanceled(class Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData eventData) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SaveChangesCanceled(Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData)" />
<MemberSignature Language="VB.NET" Value="Public Overridable Sub SaveChangesCanceled (eventData As DbContextEventData)" />
<MemberSignature Language="F#" Value="abstract member SaveChangesCanceled : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData -> unit
override this.SaveChangesCanceled : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData -> unit" Usage="iSaveChangesInterceptor.SaveChangesCanceled eventData" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.EntityFrameworkCore</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="eventData" Type="Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData" Index="0" FrameworkAlternate="efcore-7.0;efcore-8.0" />
</Parameters>
<Docs>
<param name="eventData">Contextual information about the failure.</param>
<summary>
Called when <see cref="O:DbContext.SaveChanges" /> was canceled.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="SaveChangesCanceledAsync">
<MemberSignature Language="C#" Value="public virtual System.Threading.Tasks.Task SaveChangesCanceledAsync (Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData eventData, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Threading.Tasks.Task SaveChangesCanceledAsync(class Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData eventData, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SaveChangesCanceledAsync(Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData,System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function SaveChangesCanceledAsync (eventData As DbContextEventData, Optional cancellationToken As CancellationToken = Nothing) As Task" />
<MemberSignature Language="F#" Value="abstract member SaveChangesCanceledAsync : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SaveChangesCanceledAsync : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task" Usage="iSaveChangesInterceptor.SaveChangesCanceledAsync (eventData, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.EntityFrameworkCore</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="eventData" Type="Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData" Index="0" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="1" FrameworkAlternate="efcore-7.0;efcore-8.0" />
</Parameters>
<Docs>
<param name="eventData">Contextual information about the failure.</param>
<param name="cancellationToken">A <see cref="T:System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
<summary>
Called when <see cref="O:DbContext.SaveChangesAsync" /> was canceled.
</summary>
<returns>A <see cref="T:System.Threading.Tasks.Task" /> representing the asynchronous operation.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.OperationCanceledException">If the <see cref="T:System.Threading.CancellationToken" /> is canceled.</exception>
</Docs>
</Member>
<Member MemberName="SaveChangesFailed">
<MemberSignature Language="C#" Value="public void SaveChangesFailed (Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData eventData);" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void SaveChangesFailed(class Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData eventData) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SaveChangesFailed(Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData)" />
<MemberSignature Language="VB.NET" Value="Public Sub SaveChangesFailed (eventData As DbContextErrorEventData)" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="F#" Value="abstract member SaveChangesFailed : Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData -> unit" Usage="iSaveChangesInterceptor.SaveChangesFailed eventData" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="C#" Value="public virtual void SaveChangesFailed (Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData eventData);" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberSignature Language="VB.NET" Value="Public Overridable Sub SaveChangesFailed (eventData As DbContextErrorEventData)" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberSignature Language="F#" Value="abstract member SaveChangesFailed : Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData -> unit
override this.SaveChangesFailed : Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData -> unit" Usage="iSaveChangesInterceptor.SaveChangesFailed eventData" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.EntityFrameworkCore</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="eventData" Type="Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData" />
</Parameters>
<Docs>
<param name="eventData">Contextual information about the failure.</param>
<summary>
Called when an exception has been thrown in <see cref="O:DbContext.SaveChanges" />.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="SaveChangesFailedAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task SaveChangesFailedAsync (Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData eventData, System.Threading.CancellationToken cancellationToken = default);" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Threading.Tasks.Task SaveChangesFailedAsync(class Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData eventData, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SaveChangesFailedAsync(Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData,System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function SaveChangesFailedAsync (eventData As DbContextErrorEventData, Optional cancellationToken As CancellationToken = Nothing) As Task" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="F#" Value="abstract member SaveChangesFailedAsync : Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task" Usage="iSaveChangesInterceptor.SaveChangesFailedAsync (eventData, cancellationToken)" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="C#" Value="public virtual System.Threading.Tasks.Task SaveChangesFailedAsync (Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData eventData, System.Threading.CancellationToken cancellationToken = default);" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function SaveChangesFailedAsync (eventData As DbContextErrorEventData, Optional cancellationToken As CancellationToken = Nothing) As Task" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberSignature Language="F#" Value="abstract member SaveChangesFailedAsync : Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SaveChangesFailedAsync : Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task" Usage="iSaveChangesInterceptor.SaveChangesFailedAsync (eventData, cancellationToken)" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.EntityFrameworkCore</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="eventData" Type="Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="eventData">Contextual information about the failure.</param>
<param name="cancellationToken">A <see cref="T:System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
<summary>
Called when an exception has been thrown in <see cref="O:DbContext.SaveChangesAsync" />.
</summary>
<returns>A <see cref="T:System.Threading.Tasks.Task" /> representing the asynchronous operation.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.OperationCanceledException">If the <see cref="T:System.Threading.CancellationToken" /> is canceled.</exception>
</Docs>
</Member>
<Member MemberName="SavedChanges">
<MemberSignature Language="C#" Value="public int SavedChanges (Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData eventData, int result);" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance int32 SavedChanges(class Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData eventData, int32 result) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SavedChanges(Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Function SavedChanges (eventData As SaveChangesCompletedEventData, result As Integer) As Integer" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="F#" Value="abstract member SavedChanges : Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData * int -> int" Usage="iSaveChangesInterceptor.SavedChanges (eventData, result)" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="C#" Value="public virtual int SavedChanges (Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData eventData, int result);" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function SavedChanges (eventData As SaveChangesCompletedEventData, result As Integer) As Integer" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberSignature Language="F#" Value="abstract member SavedChanges : Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData * int -> int
override this.SavedChanges : Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData * int -> int" Usage="iSaveChangesInterceptor.SavedChanges (eventData, result)" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.EntityFrameworkCore</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="eventData" Type="Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData" />
<Parameter Name="result" Type="System.Int32" />
</Parameters>
<Docs>
<param name="eventData">Contextual information about the <see cref="T:Microsoft.EntityFrameworkCore.DbContext" /> being used.</param>
<param name="result">
The result of the call to <see cref="O:DbContext.SaveChanges" />.
This value is typically used as the return value for the implementation of this method.
</param>
<summary>
Called at the end of <see cref="O:DbContext.SaveChanges" />.
</summary>
<returns>
The result that EF will use.
An implementation of this method for any interceptor that is not attempting to change the result
is to return the <paramref name="result" /> value passed in.
</returns>
<remarks>
This method is still called if an interceptor suppressed creation of a command in <see cref="M:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SavingChanges(Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData,Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult{System.Int32})" />.
In this case, <paramref name="result" /> is the result returned by <see cref="M:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SavingChanges(Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData,Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult{System.Int32})" />.
</remarks>
</Docs>
</Member>
<Member MemberName="SavedChangesAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.ValueTask<int> SavedChangesAsync (Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData eventData, int result, System.Threading.CancellationToken cancellationToken = default);" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype System.Threading.Tasks.ValueTask`1<int32> SavedChangesAsync(class Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData eventData, int32 result, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SavedChangesAsync(Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData,System.Int32,System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function SavedChangesAsync (eventData As SaveChangesCompletedEventData, result As Integer, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Integer)" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="F#" Value="abstract member SavedChangesAsync : Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData * int * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<int>" Usage="iSaveChangesInterceptor.SavedChangesAsync (eventData, result, cancellationToken)" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="C#" Value="public virtual System.Threading.Tasks.ValueTask<int> SavedChangesAsync (Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData eventData, int result, System.Threading.CancellationToken cancellationToken = default);" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function SavedChangesAsync (eventData As SaveChangesCompletedEventData, result As Integer, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Integer)" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberSignature Language="F#" Value="abstract member SavedChangesAsync : Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData * int * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<int>
override this.SavedChangesAsync : Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData * int * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<int>" Usage="iSaveChangesInterceptor.SavedChangesAsync (eventData, result, cancellationToken)" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.EntityFrameworkCore</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.ValueTask<System.Int32></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="eventData" Type="Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesCompletedEventData" />
<Parameter Name="result" Type="System.Int32" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="eventData">Contextual information about the <see cref="T:Microsoft.EntityFrameworkCore.DbContext" /> being used.</param>
<param name="result">
The result of the call to <see cref="O:DbContext.SaveChangesAsync" />.
This value is typically used as the return value for the implementation of this method.
</param>
<param name="cancellationToken">A <see cref="T:System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
<summary>
Called at the end of <see cref="O:DbContext.SaveChangesAsync" />.
</summary>
<returns>
The result that EF will use.
An implementation of this method for any interceptor that is not attempting to change the result
is to return the <paramref name="result" /> value passed in.
</returns>
<remarks>
This method is still called if an interceptor suppressed creation of a command in <see cref="M:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SavingChangesAsync(Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData,Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult{System.Int32},System.Threading.CancellationToken)" />.
In this case, <paramref name="result" /> is the result returned by <see cref="M:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SavingChangesAsync(Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData,Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult{System.Int32},System.Threading.CancellationToken)" />.
</remarks>
<exception cref="T:System.OperationCanceledException">If the <see cref="T:System.Threading.CancellationToken" /> is canceled.</exception>
</Docs>
</Member>
<Member MemberName="SavingChanges">
<MemberSignature Language="C#" Value="public Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> SavingChanges (Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData eventData, Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> result);" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult`1<int32> SavingChanges(class Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData eventData, valuetype Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult`1<int32> result) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SavingChanges(Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData,Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult{System.Int32})" />
<MemberSignature Language="VB.NET" Value="Public Function SavingChanges (eventData As DbContextEventData, result As InterceptionResult(Of Integer)) As InterceptionResult(Of Integer)" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="F#" Value="abstract member SavingChanges : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int>" Usage="iSaveChangesInterceptor.SavingChanges (eventData, result)" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="C#" Value="public virtual Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> SavingChanges (Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData eventData, Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> result);" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function SavingChanges (eventData As DbContextEventData, result As InterceptionResult(Of Integer)) As InterceptionResult(Of Integer)" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberSignature Language="F#" Value="abstract member SavingChanges : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int>
override this.SavingChanges : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int>" Usage="iSaveChangesInterceptor.SavingChanges (eventData, result)" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.EntityFrameworkCore</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<System.Int32></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="eventData" Type="Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData" />
<Parameter Name="result" Type="Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<System.Int32>" />
</Parameters>
<Docs>
<param name="eventData">Contextual information about the <see cref="T:Microsoft.EntityFrameworkCore.DbContext" /> being used.</param>
<param name="result">
Represents the current result if one exists.
This value will have <see cref="P:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult`1.HasResult" /> set to <see langword="true" /> if some previous
interceptor suppressed execution by calling <see cref="M:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult`1.SuppressWithResult(`0)" />.
This value is typically used as the return value for the implementation of this method.
</param>
<summary>
Called at the start of <see cref="O:DbContext.SaveChanges" />.
</summary>
<returns>
If <see cref="P:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult`1.HasResult" /> is false, the EF will continue as normal.
If <see cref="P:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult`1.HasResult" /> is true, then EF will suppress the operation it
was about to perform and use <see cref="P:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult`1.Result" /> instead.
An implementation of this method for any interceptor that is not attempting to change the result
is to return the <paramref name="result" /> value passed in.
</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="SavingChangesAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int>> SavingChangesAsync (Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData eventData, Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> result, System.Threading.CancellationToken cancellationToken = default);" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype System.Threading.Tasks.ValueTask`1<valuetype Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult`1<int32>> SavingChangesAsync(class Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData eventData, valuetype Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult`1<int32> result, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SavingChangesAsync(Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData,Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult{System.Int32},System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Function SavingChangesAsync (eventData As DbContextEventData, result As InterceptionResult(Of Integer), Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of InterceptionResult(Of Integer))" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="F#" Value="abstract member SavingChangesAsync : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int>>" Usage="iSaveChangesInterceptor.SavingChangesAsync (eventData, result, cancellationToken)" FrameworkAlternate="efcore-5.0;efcore-6.0" />
<MemberSignature Language="C#" Value="public virtual System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int>> SavingChangesAsync (Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData eventData, Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> result, System.Threading.CancellationToken cancellationToken = default);" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function SavingChangesAsync (eventData As DbContextEventData, result As InterceptionResult(Of Integer), Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of InterceptionResult(Of Integer))" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberSignature Language="F#" Value="abstract member SavingChangesAsync : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int>>
override this.SavingChangesAsync : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int>>" Usage="iSaveChangesInterceptor.SavingChangesAsync (eventData, result, cancellationToken)" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.EntityFrameworkCore</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<System.Int32>></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="eventData" Type="Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData" />
<Parameter Name="result" Type="Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<System.Int32>" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<Docs>
<param name="eventData">Contextual information about the <see cref="T:Microsoft.EntityFrameworkCore.DbContext" /> being used.</param>
<param name="result">
Represents the current result if one exists.
This value will have <see cref="P:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult`1.HasResult" /> set to <see langword="true" /> if some previous
interceptor suppressed execution by calling <see cref="M:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult`1.SuppressWithResult(`0)" />.
This value is typically used as the return value for the implementation of this method.
</param>
<param name="cancellationToken">A <see cref="T:System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
<summary>
Called at the start of <see cref="O:DbContext.SaveChangesAsync" />.
</summary>
<returns>
If <see cref="P:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult`1.HasResult" /> is false, the EF will continue as normal.
If <see cref="P:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult`1.HasResult" /> is true, then EF will suppress the operation it
was about to perform and use <see cref="P:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult`1.Result" /> instead.
An implementation of this method for any interceptor that is not attempting to change the result
is to return the <paramref name="result" /> value passed in.
</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.OperationCanceledException">If the <see cref="T:System.Threading.CancellationToken" /> is canceled.</exception>
</Docs>
</Member>
<Member MemberName="ThrowingConcurrencyException">
<MemberSignature Language="C#" Value="public virtual Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult ThrowingConcurrencyException (Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData eventData, Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult result);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult ThrowingConcurrencyException(class Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData eventData, valuetype Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult result) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.ThrowingConcurrencyException(Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData,Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult)" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function ThrowingConcurrencyException (eventData As ConcurrencyExceptionEventData, result As InterceptionResult) As InterceptionResult" />
<MemberSignature Language="F#" Value="abstract member ThrowingConcurrencyException : Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
override this.ThrowingConcurrencyException : Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult" Usage="iSaveChangesInterceptor.ThrowingConcurrencyException (eventData, result)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.EntityFrameworkCore</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="eventData" Type="Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData" Index="0" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<Parameter Name="result" Type="Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult" Index="1" FrameworkAlternate="efcore-7.0;efcore-8.0" />
</Parameters>
<Docs>
<param name="eventData">Contextual information about the concurrency conflict.</param>
<param name="result">
Represents the current result if one exists.
This value will have <see cref="P:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult.IsSuppressed" /> set to <see langword="true" /> if some previous
interceptor suppressed execution by calling <see cref="M:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult.Suppress" />.
This value is typically used as the return value for the implementation of this method.
</param>
<summary>
Called immediately before EF is going to throw a <see cref="T:Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException" />.
</summary>
<returns>
If <see cref="P:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult.IsSuppressed" /> is <see langword="false" />, then EF will throw the exception.
If <see cref="P:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult.IsSuppressed" /> is <see langword="true" />, then EF will not throw the exception.
An implementation of this method for any interceptor that is not attempting to suppress
setting property values must return the <paramref name="result" /> value passed in.
</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ThrowingConcurrencyExceptionAsync">
<MemberSignature Language="C#" Value="public virtual System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult> ThrowingConcurrencyExceptionAsync (Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData eventData, Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult result, System.Threading.CancellationToken cancellationToken = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype System.Threading.Tasks.ValueTask`1<valuetype Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult> ThrowingConcurrencyExceptionAsync(class Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData eventData, valuetype Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult result, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.ThrowingConcurrencyExceptionAsync(Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData,Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult,System.Threading.CancellationToken)" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function ThrowingConcurrencyExceptionAsync (eventData As ConcurrencyExceptionEventData, result As InterceptionResult, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of InterceptionResult)" />
<MemberSignature Language="F#" Value="abstract member ThrowingConcurrencyExceptionAsync : Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult>
override this.ThrowingConcurrencyExceptionAsync : Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult>" Usage="iSaveChangesInterceptor.ThrowingConcurrencyExceptionAsync (eventData, result, cancellationToken)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.EntityFrameworkCore</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="eventData" Type="Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData" Index="0" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<Parameter Name="result" Type="Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult" Index="1" FrameworkAlternate="efcore-7.0;efcore-8.0" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="2" FrameworkAlternate="efcore-7.0;efcore-8.0" />
</Parameters>
<Docs>
<param name="eventData">Contextual information about the concurrency conflict.</param>
<param name="result">
Represents the current result if one exists.
This value will have <see cref="P:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult.IsSuppressed" /> set to <see langword="true" /> if some previous
interceptor suppressed execution by calling <see cref="M:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult.Suppress" />.
This value is typically used as the return value for the implementation of this method.
</param>
<param name="cancellationToken">A <see cref="T:System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
<summary>
Called immediately before EF is going to throw a <see cref="T:Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException" />.
</summary>
<returns>
If <see cref="P:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult.IsSuppressed" /> is <see langword="false" />, then EF will throw the exception.
If <see cref="P:Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult.IsSuppressed" /> is <see langword="true" />, then EF will not throw the exception.
An implementation of this method for any interceptor that is not attempting to suppress
setting property values must return the <paramref name="result" /> value passed in.
</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.OperationCanceledException">If the <see cref="T:System.Threading.CancellationToken" /> is canceled.</exception>
</Docs>
</Member>
</Members>
</Type>