-
Notifications
You must be signed in to change notification settings - Fork 256
Expand file tree
/
Copy pathNpgsqlAnnotationNames.cs
More file actions
60 lines (51 loc) · 3.05 KB
/
NpgsqlAnnotationNames.cs
File metadata and controls
60 lines (51 loc) · 3.05 KB
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
using System;
namespace Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Internal
{
public static class NpgsqlAnnotationNames
{
public const string Prefix = "Npgsql:";
public const string ValueGenerationStrategy = Prefix + "ValueGenerationStrategy";
public const string HiLoSequenceName = Prefix + "HiLoSequenceName";
public const string HiLoSequenceSchema = Prefix + "HiLoSequenceSchema";
public const string IndexMethod = Prefix + "IndexMethod";
public const string IndexOperators = Prefix + "IndexOperators";
public const string IndexSortOrder = Prefix + "IndexSortOrder";
public const string IndexNullSortOrder = Prefix + "IndexNullSortOrder";
public const string IndexInclude = Prefix + "IndexInclude";
public const string CreatedConcurrently = Prefix + "CreatedConcurrently";
public const string PostgresExtensionPrefix = Prefix + "PostgresExtension:";
public const string EnumPrefix = Prefix + "Enum:";
public const string RangePrefix = Prefix + "Range:";
public const string DatabaseTemplate = Prefix + "DatabaseTemplate";
public const string Tablespace = Prefix + "Tablespace";
public const string StorageParameterPrefix = Prefix + "StorageParameter:";
public const string UnloggedTable = Prefix + "UnloggedTable";
public const string TablePartitioning = Prefix + "TablePartitioning";
public const string IdentityOptions = Prefix + "IdentitySequenceOptions";
public const string TsVectorConfig = Prefix + "TsVectorConfig";
public const string TsVectorProperties = Prefix + "TsVectorProperties";
public const string CollationDefinitionPrefix = Prefix + "CollationDefinition:";
public const string DefaultColumnCollation = Prefix + "DefaultColumnCollation";
// Database model annotations
/// <summary>
/// Identifies the type of the PostgreSQL type of this column (e.g. array, range, base).
/// </summary>
public const string PostgresTypeType = Prefix + "PostgresTypeType";
/// <summary>
/// If this column's data type is an array, contains the data type of its elements.
/// Otherwise null.
/// </summary>
public const string ElementDataType = Prefix + "ElementDataType";
/// <summary>
/// If the index contains an expression (rather than simple column references), the expression is contained here.
/// This is currently unsupported and will be ignored.
/// </summary>
public const string IndexExpression = Prefix + "IndexExpression";
[Obsolete("Replaced by ValueGenerationStrategy.SerialColumn")]
public const string ValueGeneratedOnAdd = Prefix + "ValueGeneratedOnAdd";
[Obsolete("Replaced by built-in EF Core support, use HasComment on entities or properties.")]
public const string Comment = Prefix + "Comment";
[Obsolete("Replaced by RelationalAnnotationNames.Collation")]
public const string IndexCollation = Prefix + "IndexCollation";
}
}