Skip to content

Commit

Permalink
upgrade package
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi committed Apr 11, 2020
1 parent 6fcda76 commit ac00501
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Options" Version="$(DotNetCorePackageVersion)" />
<PackageReference Include="WeihanLi.Common" Version="1.0.32" />
<PackageReference Include="WeihanLi.Common" Version="1.0.33" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="WeihanLi.EntityFramework" Version="1.6.0" />
<PackageReference Include="WeihanLi.EntityFramework" Version="1.6.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ActivityReservation.Models\ActivityReservation.Models.csproj">
Expand Down
3 changes: 1 addition & 2 deletions ActivityReservation.Helper/Helpers/DatabaseInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public static void Initialize(this IServiceProvider serviceProvider)
var dbContext = scope.ServiceProvider.GetRequiredService<ReservationDbContext>();
dbContext.Database.EnsureCreated();

// https://github.com/dotnet/efcore/pull/19521
if (!dbContext.IsRelationalDatabase())
if (!dbContext.Database.IsRelational())
{
if (!dbContext.Users.AsNoTracking().Any())
{
Expand Down

0 comments on commit ac00501

Please sign in to comment.