2021-03-22 12:09:25 -04:00
|
|
|
|
using Data.Context;
|
2020-04-25 20:01:26 -04:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
namespace Data.Abstractions
|
2020-04-25 20:01:26 -04:00
|
|
|
|
{
|
|
|
|
|
/// <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);
|
|
|
|
|
}
|
|
|
|
|
}
|