forked from npgsql/efcore.pg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix enum mapping when using NpgsqlDataSource (npgsql#2628)
Fixes npgsql#2557
- Loading branch information
Showing
6 changed files
with
69 additions
and
24 deletions.
There are no files selected for viewing
21 changes: 14 additions & 7 deletions
21
src/EFCore.PG/Infrastructure/Internal/INpgsqlSingletonOptions.cs
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 |
---|---|---|
@@ -1,32 +1,39 @@ | ||
namespace Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal; | ||
using System.Data.Common; | ||
|
||
namespace Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal; | ||
|
||
/// <summary> | ||
/// Represents options for Npgsql that can only be set at the <see cref="IServiceProvider"/> singleton level. | ||
/// Represents options for Npgsql that can only be set at the <see cref="IServiceProvider"/> singleton level. | ||
/// </summary> | ||
public interface INpgsqlSingletonOptions : ISingletonOptions | ||
{ | ||
/// <summary> | ||
/// The backend version to target. | ||
/// The backend version to target. | ||
/// </summary> | ||
Version PostgresVersion { get; } | ||
|
||
/// <summary> | ||
/// The backend version to target, but returns <see langword="null" /> unless the user explicitly specified a version. | ||
/// The backend version to target, but returns <see langword="null" /> unless the user explicitly specified a version. | ||
/// </summary> | ||
Version? PostgresVersionWithoutDefault { get; } | ||
|
||
/// <summary> | ||
/// Whether to target Redshift. | ||
/// Whether to target Redshift. | ||
/// </summary> | ||
bool UseRedshift { get; } | ||
|
||
/// <summary> | ||
/// True if reverse null ordering is enabled; otherwise, false. | ||
/// Whether reverse null ordering is enabled. | ||
/// </summary> | ||
bool ReverseNullOrderingEnabled { get; } | ||
|
||
/// <summary> | ||
/// The collection of range mappings. | ||
/// The data source being used, or <see langword="null" /> if a connection string or connection was provided directly. | ||
/// </summary> | ||
DbDataSource? DataSource { get; } | ||
|
||
/// <summary> | ||
/// The collection of range mappings. | ||
/// </summary> | ||
IReadOnlyList<UserRangeDefinition> UserRangeDefinitions { 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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