-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
Copy pathResultSetMapping.cs
57 lines (49 loc) · 1.91 KB
/
ResultSetMapping.cs
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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.EntityFrameworkCore.Update;
/// <summary>
/// <para>
/// Indicates what kind of impact on the result set a given command will have.
/// </para>
/// <para>
/// This type is typically used by database providers; it is generally not used in application code.
/// </para>
/// </summary>
/// <remarks>
/// See <see href="https://aka.ms/efcore-docs-providers">Implementation of database providers and extensions</see>
/// for more information and examples.
/// </remarks>
[Flags]
public enum ResultSetMapping
{
/// <summary>
/// The command does not have any results, neither as rows nor as output parameters.
/// </summary>
NoResults = 0,
/// <summary>
/// The command maps to a row in the result set.
/// </summary>
HasResultRow = 1,
/// <summary>
/// The command maps to a non-last row in the result set.
/// </summary>
NotLastInResultSet = 3,
/// <summary>
/// The command maps to the last result in the result set.
/// </summary>
LastInResultSet = 5,
/// <summary>
/// The command maps to a result set which contains only a single rows affected value.
/// </summary>
ResultSetWithRowsAffectedOnly = 9,
/// <summary>
/// When rows with database-generated values are returned in non-deterministic ordering, it is necessary to project out a synthetic
/// position value, in order to look up the correct <see cref="ModificationCommand" /> and propagate the values. When this bit is
/// enabled, the current result row contains such a position value.
/// </summary>
IsPositionalResultMappingEnabled = 17,
/// <summary>
/// The command has output parameters.
/// </summary>
HasOutputParameters = 32
}