-
Notifications
You must be signed in to change notification settings - Fork 256
Expand file tree
/
Copy pathINpgsqlSingletonOptions.cs
More file actions
49 lines (40 loc) · 1.44 KB
/
INpgsqlSingletonOptions.cs
File metadata and controls
49 lines (40 loc) · 1.44 KB
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
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.
/// </summary>
public interface INpgsqlSingletonOptions : ISingletonOptions
{
/// <summary>
/// The backend version to target.
/// </summary>
Version PostgresVersion { get; }
/// <summary>
/// Whether the user has explicitly set the backend version to target.
/// </summary>
bool IsPostgresVersionSet { get; }
/// <summary>
/// Whether to target Redshift.
/// </summary>
bool UseRedshift { get; }
/// <summary>
/// Whether to target CockroachDB.
/// </summary>
bool UseCockroachDb { get; }
/// <summary>
/// Whether reverse null ordering is enabled.
/// </summary>
bool ReverseNullOrderingEnabled { get; }
/// <summary>
/// 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; }
/// <summary>
/// The root service provider for the application, if available. />.
/// </summary>
IServiceProvider? ApplicationServiceProvider { get; }
}