Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
Efcore.Pg
提交
a6017db2
E
Efcore.Pg
项目概览
jobily
/
Efcore.Pg
12 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
Efcore.Pg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a6017db2
编写于
2月 11, 2022
作者:
S
Shay Rojansky
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Bump to 7.0-preview.2 and sync dependencies
EF Core -> 7.0.0-preview.2.22107.3
上级
0898da53
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
55 addition
and
19 deletion
+55
-19
Directory.Build.props
Directory.Build.props
+2
-2
Directory.Packages.props
Directory.Packages.props
+2
-2
test/EFCore.PG.FunctionalTests/Migrations/MigrationsNpgsqlTest.cs
...ore.PG.FunctionalTests/Migrations/MigrationsNpgsqlTest.cs
+12
-0
test/EFCore.PG.FunctionalTests/Query/NorthwindKeylessEntitiesQueryNpgsqlTest.cs
...nalTests/Query/NorthwindKeylessEntitiesQueryNpgsqlTest.cs
+15
-5
test/EFCore.PG.FunctionalTests/Query/NorthwindMiscellaneousQueryNpgsqlTest.cs
...ionalTests/Query/NorthwindMiscellaneousQueryNpgsqlTest.cs
+17
-3
test/EFCore.PG.FunctionalTests/Query/NorthwindSelectQueryNpgsqlTest.cs
...G.FunctionalTests/Query/NorthwindSelectQueryNpgsqlTest.cs
+0
-4
test/EFCore.PG.FunctionalTests/Query/SimpleQueryNpgsqlTest.cs
.../EFCore.PG.FunctionalTests/Query/SimpleQueryNpgsqlTest.cs
+7
-3
未找到文件。
Directory.Build.props
浏览文件 @
a6017db2
...
...
@@ -11,9 +11,9 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<ImplicitUsings>true</ImplicitUsings>
<Copyright>Copyright 202
1
© The Npgsql Development Team</Copyright>
<Copyright>Copyright 202
2
© The Npgsql Development Team</Copyright>
<Company>Npgsql</Company>
<VersionPrefix>7.0.0-preview.
1
</VersionPrefix>
<VersionPrefix>7.0.0-preview.
2
</VersionPrefix>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageLicenseExpression>PostgreSQL</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/npgsql/efcore.pg</PackageProjectUrl>
...
...
Directory.Packages.props
浏览文件 @
a6017db2
<Project>
<PropertyGroup>
<EFCoreVersion>7.0.0-preview.
1.22071.1
</EFCoreVersion>
<MicrosoftExtensionsVersion>7.0.0-
alpha.1.22066.4
</MicrosoftExtensionsVersion>
<EFCoreVersion>7.0.0-preview.
2.22107.3
</EFCoreVersion>
<MicrosoftExtensionsVersion>7.0.0-
preview.2.22103.2
</MicrosoftExtensionsVersion>
<NpgsqlVersion>7.0.0-preview.1-ci.20220123T182030</NpgsqlVersion>
</PropertyGroup>
...
...
test/EFCore.PG.FunctionalTests/Migrations/MigrationsNpgsqlTest.cs
浏览文件 @
a6017db2
...
...
@@ -1817,6 +1817,14 @@ public override async Task Create_index_unique()
@"CREATE UNIQUE INDEX ""IX_People_FirstName_LastName"" ON ""People"" (""FirstName"", ""LastName"");"
);
}
[
ConditionalFact
(
Skip
=
"https://github.com/npgsql/efcore.pg/issues/2267"
)]
public
override
Task
Create_index_descending
()
=>
Task
.
CompletedTask
;
[
ConditionalFact
(
Skip
=
"https://github.com/npgsql/efcore.pg/issues/2267"
)]
public
override
Task
Create_index_descending_mixed
()
=>
Task
.
CompletedTask
;
public
override
async
Task
Create_index_with_filter
()
{
await
base
.
Create_index_with_filter
();
...
...
@@ -2175,6 +2183,10 @@ public virtual async Task Create_index_tsvector_using_gin()
@"CREATE INDEX ""IX_Blogs_Title_Description"" ON ""Blogs"" USING GIN (to_tsvector('simple', ""Title"" || ' ' || coalesce(""Description"", '')));"
);
}
[
ConditionalFact
(
Skip
=
"https://github.com/npgsql/efcore.pg/issues/2267"
)]
public
override
Task
Alter_index_change_sort_order
()
=>
Task
.
CompletedTask
;
public
override
async
Task
Drop_index
()
{
await
base
.
Drop_index
();
...
...
test/EFCore.PG.FunctionalTests/Query/NorthwindKeylessEntitiesQueryNpgsqlTest.cs
浏览文件 @
a6017db2
...
...
@@ -8,10 +8,20 @@ public NorthwindKeylessEntitiesQueryNpgsqlTest(NorthwindQueryNpgsqlFixture<NoopM
:
base
(
fixture
)
{
Fixture
.
TestSqlLoggerFactory
.
Clear
();
//Fixture.TestSqlLoggerFactory.SetTestOutputHelper(testOutputHelper);
//
Fixture.TestSqlLoggerFactory.SetTestOutputHelper(testOutputHelper);
}
[
ConditionalFact
(
Skip
=
"https://github.com/dotnet/efcore/issues/21627"
)]
public
override
void
KeylessEntity_with_nav_defining_query
()
=>
base
.
KeylessEntity_with_nav_defining_query
();
}
\ No newline at end of file
public
override
async
Task
KeylessEntity_with_nav_defining_query
(
bool
async
)
{
// FromSql mapping. Issue #21627.
await
Assert
.
ThrowsAsync
<
PostgresException
>(()
=>
base
.
KeylessEntity_with_nav_defining_query
(
async
));
AssertSql
(
@"SELECT c.""CompanyName"", c.""OrderCount"", c.""SearchTerm""
FROM ""CustomerQueryWithQueryFilter"" AS c
WHERE c.""OrderCount"" > 0"
);
}
private
void
AssertSql
(
params
string
[]
expected
)
=>
Fixture
.
TestSqlLoggerFactory
.
AssertBaseline
(
expected
);
}
test/EFCore.PG.FunctionalTests/Query/NorthwindMiscellaneousQueryNpgsqlTest.cs
浏览文件 @
a6017db2
...
...
@@ -152,11 +152,25 @@ SELECT MAX(o.""OrderID"")
FROM ""Customers"" AS c"
);
}
public
override
void
Select_DTO_constructor_distinct_with_collection_projection_translated_to_server
()
public
override
async
Task
Entity_equality_through_subquery_composite_key
(
bool
async
)
{
var
message
=
(
await
Assert
.
ThrowsAsync
<
InvalidOperationException
>(
()
=>
base
.
Entity_equality_through_subquery_composite_key
(
async
))).
Message
;
Assert
.
Equal
(
CoreStrings
.
EntityEqualityOnCompositeKeyEntitySubqueryNotSupported
(
"=="
,
nameof
(
OrderDetail
)),
message
);
AssertSql
();
}
public
override
async
Task
Select_DTO_constructor_distinct_with_collection_projection_translated_to_server_with_binding_after_client_eval
(
bool
async
)
{
// Allow binding of expressions after projection has turned to client eval. Issue #24478.
Assert
.
Throws
<
TrueException
>(
()
=>
base
.
Select_DTO_constructor_distinct_with_collection_projection_translated_to_server
());
await
Assert
.
ThrowsAsync
<
TrueException
>(
()
=>
base
.
Select_DTO_constructor_distinct_with_collection_projection_translated_to_server_with_binding_after_client_eval
(
async
));
AssertSql
(
@"SELECT t.""CustomerID"", o0.""OrderID"", o0.""CustomerID"", o0.""EmployeeID"", o0.""OrderDate""
...
...
test/EFCore.PG.FunctionalTests/Query/NorthwindSelectQueryNpgsqlTest.cs
浏览文件 @
a6017db2
...
...
@@ -43,10 +43,6 @@ public override async Task
AssertSql
();
}
[
ConditionalTheory
(
Skip
=
"https://github.com/dotnet/efcore/issues/27152"
)]
public
override
Task
Reverse_in_subquery_via_pushdown
(
bool
async
)
=>
base
.
Reverse_in_subquery_via_pushdown
(
async
);
public
override
Task
Member_binding_after_ctor_arguments_fails_with_client_eval
(
bool
async
)
=>
AssertTranslationFailed
(()
=>
base
.
Member_binding_after_ctor_arguments_fails_with_client_eval
(
async
));
...
...
test/EFCore.PG.FunctionalTests/Query/SimpleQueryNpgsqlTest.cs
浏览文件 @
a6017db2
...
...
@@ -6,7 +6,11 @@ public class SimpleQueryNpgsqlTest : SimpleQueryRelationalTestBase
{
protected
override
ITestStoreFactory
TestStoreFactory
=>
NpgsqlTestStoreFactory
.
Instance
;
[
ConditionalTheory
(
Skip
=
"https://github.com/dotnet/efcore/issues/27278"
)]
public
override
Task
Aggregate_over_subquery_in_group_by_projection
(
bool
async
)
=>
base
.
Aggregate_over_subquery_in_group_by_projection
(
async
);
// 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
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录