Skip to content

v1.12.1

Choose a tag to compare

@JonathanMagnan JonathanMagnan released this 28 Oct 03:28
· 58 commits to master since this release
  • ADDED: Comparing Query Cache to EFCache - can we get best of both worlds? #541
  • ADDED: Intercept batch update #529

QueryCacheManager.IsAutoExpireCacheEnabled

Online Example: https://dotnetfiddle.net/3WHMGk

protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
	QueryCacheManager.IsAutoExpireCacheEnabled = true;
}

BatchUpdateManager.Hook

Online Example: https://dotnetfiddle.net/xsmVVy

protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
	BatchUpdateManager.Hook<Customer>(c => new Customer() { ModifiedDate = DateTime.Now });
}