-
Notifications
You must be signed in to change notification settings - Fork 257
Expand file tree
/
Copy pathAdHocMiscellaneousQueryNpgsqlTest.cs
More file actions
39 lines (30 loc) · 1.58 KB
/
AdHocMiscellaneousQueryNpgsqlTest.cs
File metadata and controls
39 lines (30 loc) · 1.58 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
using Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure;
namespace Microsoft.EntityFrameworkCore.Query;
public class AdHocMiscellaneousQueryNpgsqlTest(NonSharedFixture fixture) : AdHocMiscellaneousQueryRelationalTestBase(fixture)
{
protected override ITestStoreFactory NonSharedTestStoreFactory
=> NpgsqlTestStoreFactory.Instance;
protected override DbContextOptionsBuilder SetParameterizedCollectionMode(DbContextOptionsBuilder optionsBuilder, ParameterTranslationMode parameterizedCollectionMode)
{
new NpgsqlDbContextOptionsBuilder(optionsBuilder).UseParameterizedCollectionMode(parameterizedCollectionMode);
return optionsBuilder;
}
// Unlike the other providers, EFCore.PG does actually support mapping JsonElement
public override Task Mapping_JsonElement_property_throws_a_meaningful_exception()
=> Task.CompletedTask;
protected override Task Seed2951(Context2951 context)
=> context.Database.ExecuteSqlRawAsync(
"""
CREATE TABLE "ZeroKey" ("Id" int);
INSERT INTO "ZeroKey" VALUES (NULL)
""");
// Writes DateTime with Kind=Unspecified to timestamptz
public override Task SelectMany_where_Select(bool async)
=> Task.CompletedTask;
// Writes DateTime with Kind=Unspecified to timestamptz
public override Task Subquery_first_member_compared_to_null(bool async)
=> Task.CompletedTask;
[ConditionalTheory(Skip = "https://github.com/dotnet/efcore/pull/27995/files#r874038747")]
public override Task StoreType_for_UDF_used(bool async)
=> base.StoreType_for_UDF_used(async);
}