This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +20
-17
lines changed
src/ServiceStack.OrmLite.MySql.Tests
ServiceStack.OrmLite.SqliteTests
ServiceStack.OrmLite.Tests Expand file tree Collapse file tree 4 files changed +20
-17
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFrameworks >net46;netcoreapp2.0 </TargetFrameworks >
4
+ <TargetFrameworks >net46;netcoreapp2.1 </TargetFrameworks >
5
5
<DebugType >portable</DebugType >
6
6
<AssemblyName >ServiceStack.OrmLite.MySql.Tests</AssemblyName >
7
7
<OutputType >Library</OutputType >
56
56
</ItemGroup >
57
57
58
58
<ItemGroup >
59
- <PackageReference Include =" NUnit" Version =" 3.9.0" />
59
+ <PackageReference Include =" NUnit3TestAdapter" Version =" 3.10.0" />
60
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.8.0" />
61
+ <PackageReference Include =" NUnit" Version =" 3.10.1" />
60
62
</ItemGroup >
61
63
62
64
<PropertyGroup Condition =" '$(TargetFramework)' == 'net46' " >
80
82
<Reference Include =" ..\..\lib\net45\ServiceStack.dll" />
81
83
</ItemGroup >
82
84
83
- <PropertyGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.0 ' " >
85
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.1 ' " >
84
86
<DefineConstants >$(DefineConstants);NETCORE_SUPPORT;NETCORE</DefineConstants >
85
87
</PropertyGroup >
86
88
87
- <ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.0 ' " >
89
+ <ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.1 ' " >
88
90
<PackageReference Include =" System.Runtime" Version =" 4.3.0" />
89
91
<PackageReference Include =" System.Runtime.Serialization.Xml" Version =" 4.3.0" />
90
92
<PackageReference Include =" System.Reflection" Version =" 4.3.0" />
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFrameworks >net46;netcoreapp2.0 </TargetFrameworks >
4
+ <TargetFrameworks >net46;netcoreapp2.1 </TargetFrameworks >
5
5
<DebugType >portable</DebugType >
6
6
<AssemblyName >ServiceStack.OrmLite.MySql.Tests</AssemblyName >
7
7
<OutputType >Library</OutputType >
56
56
</ItemGroup >
57
57
58
58
<ItemGroup >
59
- <PackageReference Include =" NUnit" Version =" 3.9.0" />
59
+ <PackageReference Include =" NUnit3TestAdapter" Version =" 3.10.0" />
60
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.8.0" />
61
+ <PackageReference Include =" NUnit" Version =" 3.10.1" />
60
62
</ItemGroup >
61
63
62
64
<PropertyGroup >
84
86
<Reference Include =" ..\..\lib\net45\ServiceStack.dll" />
85
87
</ItemGroup >
86
88
87
- <PropertyGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.0 ' " >
89
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.1 ' " >
88
90
<DefineConstants >$(DefineConstants);NETCORE_SUPPORT;NETCORE</DefineConstants >
89
91
</PropertyGroup >
90
92
96
98
<OutputPath >bin\DebugConnector\net45\</OutputPath >
97
99
</PropertyGroup >
98
100
99
- <ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.0 ' " >
101
+ <ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.1 ' " >
100
102
<PackageReference Include =" System.Runtime" Version =" 4.3.0" />
101
103
<PackageReference Include =" System.Runtime.Serialization.Xml" Version =" 4.3.0" />
102
104
<PackageReference Include =" System.Reflection" Version =" 4.3.0" />
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFrameworks >net45;netcoreapp2.0</TargetFrameworks >
5
- <!-- <TargetFrameworks>netcoreapp1.1</TargetFrameworks>-->
4
+ <TargetFrameworks >net45;netcoreapp2.1</TargetFrameworks >
6
5
<DebugType >portable</DebugType >
7
6
<AssemblyName >ServiceStack.OrmLite.SqliteTests</AssemblyName >
8
7
<OutputType >Library</OutputType >
24
23
</ItemGroup >
25
24
26
25
<ItemGroup >
27
- <PackageReference Include =" NUnit" Version =" 3.8.1" />
26
+ <PackageReference Include =" NUnit3TestAdapter" Version =" 3.10.0" />
27
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.8.0" />
28
+ <PackageReference Include =" NUnit" Version =" 3.10.1" />
28
29
</ItemGroup >
29
30
30
31
<PropertyGroup Condition =" '$(TargetFramework)' == 'net45' " >
49
50
<Reference Include =" ..\..\lib\net45\ServiceStack.dll" />
50
51
</ItemGroup >
51
52
52
- <PropertyGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.0 ' " >
53
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.1 ' " >
53
54
<DefineConstants >$(DefineConstants);NETCORE_SUPPORT;NETCORE</DefineConstants >
54
55
</PropertyGroup >
55
56
66
67
<PackageReference Include =" NUnitLite" Version =" 3.6.1" />
67
68
</ItemGroup >
68
69
69
- <ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.0 ' " >
70
+ <ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp2.1 ' " >
70
71
<PackageReference Include =" Microsoft.Data.Sqlite" Version =" 2.0" />
71
72
<PackageReference Include =" Microsoft.Extensions.Primitives" Version =" 2.0.0" />
72
73
<PackageReference Include =" System.Runtime" Version =" 4.*" />
Original file line number Diff line number Diff line change @@ -46,17 +46,15 @@ public void Does_call_Filters_on_insert_and_update()
46
46
47
47
OrmLiteConfig . InsertFilter = ( dbCmd , row ) =>
48
48
{
49
- var auditRow = row as IAudit ;
50
- if ( auditRow != null )
49
+ if ( row is IAudit auditRow )
51
50
{
52
51
auditRow . CreatedDate = auditRow . ModifiedDate = insertDate ;
53
52
}
54
53
} ;
55
54
56
55
OrmLiteConfig . UpdateFilter = ( dbCmd , row ) =>
57
56
{
58
- var auditRow = row as IAudit ;
59
- if ( auditRow != null )
57
+ if ( row is IAudit auditRow )
60
58
{
61
59
auditRow . ModifiedDate = updateDate ;
62
60
}
You can’t perform that action at this time.
0 commit comments