From 95a5a9e93b88a1d19daca5d3f80157176822bbe3 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Tue, 8 Aug 2023 12:25:28 +0100 Subject: [PATCH] refactor: readonly IDbContextFactory --- OliverBooth/Services/BlogService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OliverBooth/Services/BlogService.cs b/OliverBooth/Services/BlogService.cs index 5069ef6..bd0d055 100644 --- a/OliverBooth/Services/BlogService.cs +++ b/OliverBooth/Services/BlogService.cs @@ -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 _dbContextFactory; + private readonly IDbContextFactory _dbContextFactory; /// /// Initializes a new instance of the class.