Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
NPoco
提交
01b9f8aa
N
NPoco
项目概览
jobily
/
NPoco
9 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
NPoco
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
01b9f8aa
编写于
11月 13, 2020
作者:
A
Adam Schroder
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update to net5.0 and all packages
上级
cf50d312
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
12 deletion
+13
-12
src/NPoco.JsonNet/NPoco.JsonNet.csproj
src/NPoco.JsonNet/NPoco.JsonNet.csproj
+1
-1
src/NPoco.SqlServer/NPoco.SqlServer.csproj
src/NPoco.SqlServer/NPoco.SqlServer.csproj
+1
-1
src/NPoco/NPoco.csproj
src/NPoco/NPoco.csproj
+4
-3
test/NPoco.Tests/FluentTests/QueryTests/QueryProviderTests.cs
.../NPoco.Tests/FluentTests/QueryTests/QueryProviderTests.cs
+2
-2
test/NPoco.Tests/NPoco.Tests.csproj
test/NPoco.Tests/NPoco.Tests.csproj
+5
-5
未找到文件。
src/NPoco.JsonNet/NPoco.JsonNet.csproj
浏览文件 @
01b9f8aa
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<PropertyGroup>
<PropertyGroup>
<Description>Provides an implementation to use Json.NET as the serializer for serialized columns</Description>
<Description>Provides an implementation to use Json.NET as the serializer for serialized columns</Description>
<VersionPrefix>5.0.0</VersionPrefix>
<VersionPrefix>5.0.0</VersionPrefix>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net
461;net
standard2.0;netstandard2.1</TargetFrameworks>
<AssemblyName>NPoco.JsonNet</AssemblyName>
<AssemblyName>NPoco.JsonNet</AssemblyName>
<PackageId>NPoco.JsonNet</PackageId>
<PackageId>NPoco.JsonNet</PackageId>
<PackageTags>orm;sql;micro-orm;database;mvc</PackageTags>
<PackageTags>orm;sql;micro-orm;database;mvc</PackageTags>
...
...
src/NPoco.SqlServer/NPoco.SqlServer.csproj
浏览文件 @
01b9f8aa
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<PropertyGroup>
<PropertyGroup>
<Description>An extremely easy to use Micro-ORM supporting Sql Server.</Description>
<Description>An extremely easy to use Micro-ORM supporting Sql Server.</Description>
<VersionPrefix>5.0.0</VersionPrefix>
<VersionPrefix>5.0.0</VersionPrefix>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net
461;net
standard2.0;netstandard2.1</TargetFrameworks>
<AssemblyName>NPoco.SqlServer</AssemblyName>
<AssemblyName>NPoco.SqlServer</AssemblyName>
<PackageId>NPoco.SqlServer</PackageId>
<PackageId>NPoco.SqlServer</PackageId>
<Authors>Adam Schröder</Authors>
<Authors>Adam Schröder</Authors>
...
...
src/NPoco/NPoco.csproj
浏览文件 @
01b9f8aa
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<PropertyGroup>
<PropertyGroup>
<Description>An extremely easy to use Micro-ORM supporting Sql Server, MySQL, PostgreSQL, Oracle, Sqlite, SqlCE.</Description>
<Description>An extremely easy to use Micro-ORM supporting Sql Server, MySQL, PostgreSQL, Oracle, Sqlite, SqlCE.</Description>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net
461;net
standard2.0;netstandard2.1</TargetFrameworks>
<AssemblyName>NPoco</AssemblyName>
<AssemblyName>NPoco</AssemblyName>
<PackageId>NPoco</PackageId>
<PackageId>NPoco</PackageId>
<VersionPrefix>5.0.0</VersionPrefix>
<VersionPrefix>5.0.0</VersionPrefix>
...
@@ -21,8 +21,9 @@
...
@@ -21,8 +21,9 @@
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<PackageReference Condition=" '$(TargetFramework)' == 'netstandard2.0' " Include="Microsoft.Bcl.AsyncInterfaces" Version="1.1.1" />
<PackageReference Condition="'$(TargetFramework)' == 'net461' " Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="System.Linq.Async" Version="4.1.1" />
<PackageReference Condition="'$(TargetFramework)' == 'net461' or '$(TargetFramework)' == 'netstandard2.0' " Include="Microsoft.Bcl.AsyncInterfaces" Version="1.1.1" />
<PackageReference Include="System.Linq.Async" Version="5.0.0" />
<PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.7.0" />
<PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.7.0" />
</ItemGroup>
</ItemGroup>
...
...
test/NPoco.Tests/FluentTests/QueryTests/QueryProviderTests.cs
浏览文件 @
01b9f8aa
...
@@ -357,7 +357,7 @@ public void QueryWithProjectionAndEnclosedMethod()
...
@@ -357,7 +357,7 @@ public void QueryWithProjectionAndEnclosedMethod()
SetCurrentCulture
(
new
CultureInfo
(
"en-US"
));
SetCurrentCulture
(
new
CultureInfo
(
"en-US"
));
var
users
=
Database
.
Query
<
User
>()
var
users
=
Database
.
Query
<
User
>()
.
ProjectTo
(
x
=>
new
ProjectUser2
{
FormattedAge
=
string
.
Format
(
"{0:n}"
,
x
.
Age
)
});
.
ProjectTo
(
x
=>
new
ProjectUser2
{
FormattedAge
=
x
.
Age
.
ToString
(
"n2"
)
});
Assert
.
AreEqual
(
"21.00"
,
users
[
0
].
FormattedAge
);
Assert
.
AreEqual
(
"21.00"
,
users
[
0
].
FormattedAge
);
Assert
.
AreEqual
(
15
,
users
.
Count
);
Assert
.
AreEqual
(
15
,
users
.
Count
);
...
@@ -384,7 +384,7 @@ public void QueryWithProjectionAndEnclosedMethod1()
...
@@ -384,7 +384,7 @@ public void QueryWithProjectionAndEnclosedMethod1()
// these arguments are properly supported (ProcessMethodSearchRecursively supports
// these arguments are properly supported (ProcessMethodSearchRecursively supports
// NewArrayExpression).
// NewArrayExpression).
var
users
=
Database
.
Query
<
User
>()
var
users
=
Database
.
Query
<
User
>()
.
ProjectTo
(
x
=>
new
ProjectUser2
{
FormattedAge
=
string
.
Format
(
"{0:n
} {1:n} {2:n} {3:n} {4:n} {5:n} {6:n
}"
,
.
ProjectTo
(
x
=>
new
ProjectUser2
{
FormattedAge
=
string
.
Format
(
"{0:n
2} {1:n2} {2:n2} {3:n2} {4:n2} {5:n2} {6:n2
}"
,
x
.
Age
,
x
.
Age
,
x
.
Age
,
x
.
Age
,
x
.
Age
,
x
.
Age
,
x
.
Age
)
});
x
.
Age
,
x
.
Age
,
x
.
Age
,
x
.
Age
,
x
.
Age
,
x
.
Age
,
x
.
Age
)
});
Assert
.
AreEqual
(
"21.00 21.00 21.00 21.00 21.00 21.00 21.00"
,
users
[
0
].
FormattedAge
);
Assert
.
AreEqual
(
"21.00 21.00 21.00 21.00 21.00 21.00 21.00"
,
users
[
0
].
FormattedAge
);
...
...
test/NPoco.Tests/NPoco.Tests.csproj
浏览文件 @
01b9f8aa
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<PropertyGroup>
<PropertyGroup>
<Description>NPoco Tests</Description>
<Description>NPoco Tests</Description>
<VersionPrefix>5.0.0</VersionPrefix>
<VersionPrefix>5.0.0</VersionPrefix>
<TargetFrameworks>net
coreapp3.1
</TargetFrameworks>
<TargetFrameworks>net
5.0
</TargetFrameworks>
<AssemblyName>NPoco.Tests</AssemblyName>
<AssemblyName>NPoco.Tests</AssemblyName>
<OutputType>Library</OutputType>
<OutputType>Library</OutputType>
<PackageId>NPoco.Tests</PackageId>
<PackageId>NPoco.Tests</PackageId>
...
@@ -22,12 +22,12 @@
...
@@ -22,12 +22,12 @@
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.
7.1
" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.
8.0
" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="
3.1.8
" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="
5.0.0
" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="
3.1.8
" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="
5.0.0
" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="
3.1.8
" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="
5.0.0
" />
<PackageReference Include="FirebirdSql.Data.FirebirdClient" Version="7.5.0" />
<PackageReference Include="FirebirdSql.Data.FirebirdClient" Version="7.5.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
</ItemGroup>
</ItemGroup>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录