-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NullSortOrder and use in metadata
- Loading branch information
Showing
9 changed files
with
63 additions
and
22 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
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
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,29 @@ | ||
namespace Npgsql.EntityFrameworkCore.PostgreSQL.Metadata | ||
{ | ||
/// <summary> | ||
/// Options for modifying sort ordering of <c>NULL</c>-values in indexes. | ||
/// </summary> | ||
public enum NullSortOrder | ||
{ | ||
/// <summary> | ||
/// Represents an unspecified sort order. The database default will be used. | ||
/// </summary> | ||
Unspecified = 0, | ||
|
||
/// <summary> | ||
/// Specifies that nulls sort before non-nulls. | ||
/// </summary> | ||
/// <remarks> | ||
/// This is the default when <see cref="SortOrder.Descending"/> is specified. | ||
/// </remarks> | ||
NullsFirst = 1, | ||
|
||
/// <summary> | ||
/// Specifies that nulls sort after non-nulls. | ||
/// </summary> | ||
/// <remarks> | ||
/// This is the default when <see cref="SortOrder.Descending"/> is not specified. | ||
/// </remarks> | ||
NullsLast = 2, | ||
} | ||
} |
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
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