17 lines
430 B
C#
17 lines
430 B
C#
using AyCode.Database.DbContexts;
|
|
|
|
namespace AyCode.Database.DataLayers;
|
|
|
|
public interface IAcDalBase //: IDisposable
|
|
{
|
|
public string Name { get; }
|
|
}
|
|
|
|
public interface IAcDalBase<TDbContext> : IAcDalBase where TDbContext : AcDbContextBase
|
|
{
|
|
public bool AutoCloseSession { get; set; }
|
|
public TDbContext Context { get; }
|
|
|
|
public TDbContext CreateDbContext();
|
|
public void CloseDbContext(ref TDbContext? ctx);
|
|
} |