22 lines
501 B
C#
22 lines
501 B
C#
|
using Microsoft.EntityFrameworkCore;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Data.Common;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace Persistence.Database.Model;
|
|||
|
public interface IDbContextManager
|
|||
|
{
|
|||
|
//IConnectionManager ConnectionManager { get; }
|
|||
|
|
|||
|
DbContext GetReadonlyDbContext();
|
|||
|
|
|||
|
DbContext GetDbContext();
|
|||
|
|
|||
|
DbContext CreateAndInitializeNewContext();
|
|||
|
|
|||
|
DbContext CreateAndInitializeNewContext(DbConnection connection);
|
|||
|
}
|