IW4M-Admin/SharedLibraryCore/Interfaces/IDatabaseContextFactory.cs

18 lines
578 B
C#
Raw Normal View History

using SharedLibraryCore.Database;
namespace SharedLibraryCore.Interfaces
{
/// <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);
}
}