-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
ModelCodeGenerationOptions.cs
77 lines (66 loc) · 3.19 KB
/
ModelCodeGenerationOptions.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.EntityFrameworkCore.Scaffolding
{
/// <summary>
/// Represents the options to use while generating code for a model.
/// </summary>
public class ModelCodeGenerationOptions
{
/// <summary>
/// Gets or sets a value indicating whether to use data annotations.
/// </summary>
/// <value> A value indicating whether to use data annotations. </value>
public virtual bool UseDataAnnotations { get; set; }
/// <summary>
/// Gets or sets a value indicating whether to suppress the connection string sensitive information warning.
/// </summary>
/// <value> A value indicating whether to suppress the connection string sensitive information warning. </value>
public virtual bool SuppressConnectionStringWarning { get; set; }
/// <summary>
/// Gets or sets a value indicating whether to suppress generation of the OnConfiguring() method.
/// </summary>
/// <value> A value indicating whether to suppress generation of the OnConfiguring() method. </value>
public virtual bool SuppressOnConfiguring { get; set; }
/// <summary>
/// Gets or sets the namespace of the project.
/// </summary>
/// <value>The namespace of the project.</value>
public virtual string? RootNamespace { get; set; }
/// <summary>
/// Gets or sets the namespace for model classes.
/// </summary>
/// <value> The namespace for model classes. </value>
public virtual string? ModelNamespace { get; set; }
/// <summary>
/// Gets or sets the namespace for context class.
/// </summary>
/// <value>The namespace for context class.</value>
public virtual string? ContextNamespace { get; set; }
/// <summary>
/// Gets or sets the programming language to scaffold for.
/// </summary>
/// <value> The programming language to scaffold for. </value>
public virtual string? Language { get; set; }
/// <summary>
/// Gets or sets a value indicating whether nullable reference types are enabled.
/// </summary>
/// <value> A value indicating whether nullable reference types are enabled. </value>
public virtual bool UseNullableReferenceTypes { get; set; }
/// <summary>
/// Gets or sets the DbContext output directory.
/// </summary>
/// <value> The DbContext output directory. </value>
public virtual string? ContextDir { get; set; }
/// <summary>
/// Gets or sets the <see cref="DbContext" /> name.
/// </summary>
/// <value> The <see cref="DbContext" /> name. </value>
public virtual string? ContextName { get; set; }
/// <summary>
/// Gets or sets the connection string.
/// </summary>
/// <value name="connectionString"> The connection string. </value>
public virtual string? ConnectionString { get; set; }
}
}