disable change tracking
This commit is contained in:
parent
535c420952
commit
9c100531ef
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@ namespace Sledgemapper.Api.Data
|
|||
public DbSet<MapLog> MapLogs { get; set; }
|
||||
|
||||
public MyDbContext(DbContextOptions options):base(options)
|
||||
{}
|
||||
{
|
||||
ChangeTracker.QueryTrackingBehavior=QueryTrackingBehavior.NoTracking;
|
||||
}
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue