mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-07 21:58:06 -05:00
18 lines
553 B
C#
18 lines
553 B
C#
using Data.Context;
|
|
|
|
namespace Data.Abstractions
|
|
{
|
|
/// <summary>
|
|
/// describes the capabilities of the database context factory
|
|
/// </summary>
|
|
public interface IDatabaseContextFactory
|
|
{
|
|
/// <summary>
|
|
/// create or retrieves an existing database context instance
|
|
/// </summary>
|
|
/// <param name="enableTracking">indicated if entity tracking should be enabled</param>
|
|
/// <returns>database context instance</returns>
|
|
DatabaseContext CreateContext(bool? enableTracking = true);
|
|
}
|
|
}
|