Skip to content

Commit

Permalink
2.1.1 released
Browse files Browse the repository at this point in the history
  • Loading branch information
vipwan committed Nov 26, 2024
1 parent 982973e commit f00dacc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0;net9.0</TargetFrameworks>
<Version>2.1.0</Version>
<Version>2.1.1</Version>
<Authors>万雅虎</Authors>
<LangVersion>latest</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand All @@ -11,8 +11,8 @@
<Description>Bring back support for UseRowNumberForPaging in EntityFrameworkCore 9.0/8.0/7.0/6.0 Use a ROW_NUMBER() in queries instead of OFFSET/FETCH. This method is backwards-compatible to SQL Server 2005.</Description>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<AssemblyVersion>2.1.0</AssemblyVersion>
<FileVersion>2.1.0</FileVersion>
<AssemblyVersion>2.1.1</AssemblyVersion>
<FileVersion>2.1.1</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ The same as original UseRowNumberForPaging method
using Biwen.EFCore.UseRowNumberForPaging;

// UseRowNumberForPaging()
optionsBuilder.UseSqlServer("connection string", i => i.UseRowNumberForPaging());
optionsBuilder.UseSqlServer("connection string", o => o.UseRowNumberForPaging());

```
4 changes: 2 additions & 2 deletions TestProject1/MyDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer(
@"Server=(localdb)\mssqllocaldb;Database=Users;Integrated Security=True",
x =>
o =>
{
x.UseRowNumberForPaging();
o.UseRowNumberForPaging();
});
}
}
3 changes: 1 addition & 2 deletions TestProject1/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Azure;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;

namespace TestProject1
{
Expand Down
3 changes: 1 addition & 2 deletions TestProject1/User.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

namespace TestProject1;
namespace TestProject1;

public class User
{
Expand Down

0 comments on commit f00dacc

Please sign in to comment.