refactor: readonly IDbContextFactory

This commit is contained in:
Oliver Booth 2023-08-08 12:25:28 +01:00
parent 96ec83e525
commit 95a5a9e93b
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.CodeAnalysis;
using Microsoft.EntityFrameworkCore;
using OliverBooth.Data;
using OliverBooth.Data.Blog;
@ -7,7 +7,7 @@ namespace OliverBooth.Services;
public sealed class BlogService
{
private IDbContextFactory<BlogContext> _dbContextFactory;
private readonly IDbContextFactory<BlogContext> _dbContextFactory;
/// <summary>
/// Initializes a new instance of the <see cref="BlogService" /> class.