21 lines
553 B
C#
21 lines
553 B
C#
namespace Mango.Nop.Core.Interfaces;
|
|
|
|
public interface IMgDalBase //: IAcDalBase//: IDisposable
|
|
{
|
|
public string Name { get; }
|
|
}
|
|
|
|
public interface IMgDalBase<out TDbContext> : IMgDalBase where TDbContext : IMgDbContextBase
|
|
{
|
|
//public bool AutoCloseSession { get; set; }
|
|
|
|
/// <summary>
|
|
/// Do not use it! Use Session or Transaction... - J.
|
|
/// </summary>
|
|
public TDbContext Context { get; }
|
|
public Mutex MutextLock { get; }
|
|
|
|
//public TDbContext CreateDbContext();
|
|
//public void CloseDbContext(ref TDbContext? ctx);
|
|
}
|