-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved encapsulation for CheckConstraint annotations
- Loading branch information
Showing
26 changed files
with
1,315 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// 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.Metadata | ||
{ | ||
/// <summary> | ||
/// Represents a check constraint in the <see cref="IModel" />. | ||
/// </summary> | ||
public interface ICheckConstraint | ||
{ | ||
/// <summary> | ||
/// Gets the name of the check constraint in the database. | ||
/// </summary> | ||
string Name { get; } | ||
|
||
/// <summary> | ||
/// The database table that contains the check constraint. | ||
/// </summary> | ||
string Table { get; } | ||
|
||
/// <summary> | ||
/// The database table schema that contains the check constraint. | ||
/// </summary> | ||
string Schema { get; } | ||
|
||
/// <summary> | ||
/// The <see cref="IModel" /> in which this check constraint is defined. | ||
/// </summary> | ||
IModel Model { get; } | ||
|
||
/// <summary> | ||
/// Gets the constraint sql used in a check constraint in the database. | ||
/// </summary> | ||
string ConstraintSql { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.