refactor: readonly IDbContextFactory
This commit is contained in:
parent
96ec83e525
commit
95a5a9e93b
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user