-
Notifications
You must be signed in to change notification settings - Fork 257
Expand file tree
/
Copy pathAdHocAdvancedMappingsQueryNpgsqlTest.cs
More file actions
38 lines (31 loc) · 2.54 KB
/
AdHocAdvancedMappingsQueryNpgsqlTest.cs
File metadata and controls
38 lines (31 loc) · 2.54 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
namespace Microsoft.EntityFrameworkCore.Query;
public class AdHocAdvancedMappingsQueryNpgsqlTest(NonSharedFixture fixture)
: AdHocAdvancedMappingsQueryRelationalTestBase(fixture)
{
protected override ITestStoreFactory NonSharedTestStoreFactory
=> NpgsqlTestStoreFactory.Instance;
// Cannot write DateTime with Kind=Unspecified to PostgreSQL type 'timestamp with time zone', only UTC is supported.
public override Task Query_generates_correct_datetime2_parameter_definition(int? fractionalSeconds, string postfix)
=> Assert.ThrowsAsync<ArgumentException>(
() => base.Query_generates_correct_datetime2_parameter_definition(fractionalSeconds, postfix));
// Cannot write DateTimeOffset with Offset=10:00:00 to PostgreSQL type 'timestamp with time zone', only offset 0 (UTC) is supported.
public override Task Query_generates_correct_datetimeoffset_parameter_definition(int? fractionalSeconds, string postfix)
=> Assert.ThrowsAsync<ArgumentException>(
() => base.Query_generates_correct_datetime2_parameter_definition(fractionalSeconds, postfix));
// Cannot write DateTimeOffset with Offset=10:00:00 to PostgreSQL type 'timestamp with time zone', only offset 0 (UTC) is supported.
public override Task Projecting_one_of_two_similar_complex_types_picks_the_correct_one()
=> Assert.ThrowsAsync<DbUpdateException>(
() => base.Projecting_one_of_two_similar_complex_types_picks_the_correct_one());
// Cannot write DateTimeOffset with Offset=10:00:00 to PostgreSQL type 'timestamp with time zone', only offset 0 (UTC) is supported.
public override Task Projecting_expression_with_converter_with_closure(bool async)
=> Assert.ThrowsAsync<DbUpdateException>(
() => base.Projecting_one_of_two_similar_complex_types_picks_the_correct_one());
// Cannot write DateTimeOffset with Offset=10:00:00 to PostgreSQL type 'timestamp with time zone', only offset 0 (UTC) is supported.
public override Task Projecting_property_with_converter_with_closure(bool async)
=> Assert.ThrowsAsync<DbUpdateException>(
() => base.Projecting_one_of_two_similar_complex_types_picks_the_correct_one());
// Cannot write DateTimeOffset with Offset=10:00:00 to PostgreSQL type 'timestamp with time zone', only offset 0 (UTC) is supported.
public override Task Projecting_property_with_converter_without_closure(bool async)
=> Assert.ThrowsAsync<DbUpdateException>(
() => base.Projecting_one_of_two_similar_complex_types_picks_the_correct_one());
}