mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
resolve CA1062 warning
This commit is contained in:
parent
0a5786897b
commit
fa21335e9b
2 changed files with 4 additions and 1 deletions
|
|
@ -15,6 +15,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Ardalis.GuardClauses" Version="1.4.1" />
|
||||
<PackageReference Include="JetBrains.Annotations" Version="2019.1.3" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using FilterLists.Data.Entities;
|
||||
using Ardalis.GuardClauses;
|
||||
using FilterLists.Data.Entities;
|
||||
using FilterLists.Data.Entities.Junctions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
|
|
@ -31,6 +32,7 @@ public FilterListsDbContext(DbContextOptions options) : base(options)
|
|||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
Guard.Against.Null(modelBuilder, nameof(modelBuilder));
|
||||
modelBuilder.ApplyConfigurationsFromAssembly(typeof(FilterListsDbContext).Assembly);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue