chatbot/Chatbot.Domain.Data/DbContexts/ChatDbContext.cs

17 lines
416 B
C#
Raw Normal View History

2020-06-06 18:29:20 +03:00
using Microsoft.EntityFrameworkCore;
namespace Chatbot.Api.Domain.Data.DbContexts
{
public class ChatDbContext : DbContext
{
public ChatDbContext(DbContextOptions<ChatDbContext> options)
: base(options)
{
base.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.TrackAll;
base.ChangeTracker.AutoDetectChangesEnabled = true;
}
}
}