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

View File

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