-
Notifications
You must be signed in to change notification settings - Fork 3
/
SchemaValidationOptions.cs
27 lines (24 loc) · 1.07 KB
/
SchemaValidationOptions.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
namespace Aranasoft.Cobweb.EntityFrameworkCore.Validation {
/// <summary>
/// Configuration options for validating a model against a connected database
/// </summary>
public class SchemaValidationOptions {
/// <summary>
/// Validate indexes configured within the model against the connected database
/// </summary>
public bool ValidateIndexes { get; set; } = true;
/// <summary>
/// Validate foreign keys configured within the model against the connected database
/// </summary>
public bool ValidateForeignKeys { get; set; } = true;
/// <summary>
/// Validate nullability on table columns
/// </summary>
public bool ValidateNullabilityForTables { get; set; } = true;
/// <summary>
/// Validate nullability on view columns
/// </summary>
/// <remarks>Some database systems enable nullability on view columns regardless of nullability on the underlying table column</remarks>
public bool ValidateNullabilityForViews { get; set; } = false;
}
}