Skip to content

Commit 085c245

Browse files
GarvinGarvin
Garvin
authored and
Garvin
committed
Back to new version with fix for DbFunction system call
1 parent 50612f6 commit 085c245

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ PersonContext.cs
252252

253253
//Sql Server >= 2012
254254
//https://docs.microsoft.com/en-us/sql/t-sql/functions/format-transact-sql
255-
[DbFunction]
255+
[DbFunction(Schema="")]
256256
public static string Format(DateTime data,string format)
257257
{
258258
throw new Exception();

test/DatatablesParser.Tests/DatatablesParser.Tests.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<ProjectReference Include="../../src/DatatablesParser/DatatablesParser.csproj" />
99
</ItemGroup>
1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="2.0.0" />
12-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.0" />
13-
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="2.0.0" />
14-
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="2.0.1" />
11+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="2.2.0-preview3-35497" />
12+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.2.0-preview3-35497" />
13+
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="2.2.0-preview1" />
14+
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="2.1.2" />
1515
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
1616
<PackageReference Include="xunit" Version="2.2.0" />
1717
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />

test/DatatablesParser.Tests/PersonContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public PersonContext(DbContextOptions<PersonContext> options)
1111
: base(options){ }
1212

1313
//Sql Server >= 2012
14-
[DbFunction]
14+
[DbFunction(Schema="")]
1515
public static string Format(DateTime data,string format)
1616
{
1717
throw new Exception();

0 commit comments

Comments
 (0)