14 lines
388 B
C#
14 lines
388 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace YABA.Data.Context
|
|
{
|
|
public class YABAReadOnlyContext : YABABaseContext
|
|
{
|
|
public YABAReadOnlyContext() : base() { }
|
|
public YABAReadOnlyContext(DbContextOptions<YABABaseContext> options) : base(options)
|
|
{
|
|
ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
|
|
}
|
|
}
|
|
}
|