zzz projects Entity Framework 6 EF 6
Home EF Core Articles Knowledge Base Online Examples
  • Home
  • EF Core
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework 6 - Knowledge Base (KB)

16 results in tag: caching

Most Efficient Way Of Clearing Cache Using ASP.NET

I am building an ASP.NET/Umbraco powered website which is very custom data driven via entity framework, we are having to cache quite a lot of the data queries (For example searches by keyword) as it's a busy site....But when a user creates a new data ent...
asp.net c# cache-control caching entity-framework
asked by leen3o

An entity object cannot be referenced by multiple instances of IEntityChangeTracker

I use EF as ORM....I dispose the ...objectContext... on every request....I save the entities in a cache layer, as my service gets lots of traffic....I got sometimes get the error ...objectContext already disposed... for some entities that I got from the c...
asp.net c# caching entity-framework
asked by Elad Benda

Can calling ToList on a DbSet cause caching?

I was using the following code to repopulate an ...ObservableCollection<T>... on change notification from a ...SqlDependency...:...var set = _dbContext.Set<T>().ToList(); this.AddRange(set); ...In this scenario, the ...OnChange... event fires correctly, b...
caching entity-framework entity-framework-6 sqldependency
asked by ProfK

Why does Entity Framework 6.x not cache results?

Perhaps I am misunderstanding the caching that ...DbContext... and ...DbSet... does but I was under the impression that there was some caching that would go on. I'm seeing behavior that I wouldn't expect when I run the following code:...var ctx = CreateAC...
c# caching entity-framework entity-framework-6
asked by Adam Modlin

Entity Framework 6 Compiled LINQ Query

I'm trying to improve performance of a web application by caching a query.... public static Func<myEntity, List<HASHDuplicates>, IQueryable<FormResponse>> CompiledDuplicatedResponses = CompiledQuery.Compile<myEntity, List<HASHDuplicates>, IQueryabl...
c# caching compiled-query entity-framework linq
asked by Giox

How to detach entity from context when you no longer have a context reference

I am pre-loading product data on my website as I need this to be accessible fast and would rather this be loaded once on application start up rather than just when it's request. This is one way to make sure things load fast. I do this by eager loading my ...
c# caching datacontext entity-framework entity-framework-6
asked by webnoob

Invalidating/Disabling Entity Framework cache

I see there are plenties of question on EF cache, but I have found no solution yet to my problem....The straight question is...How do I completely disable Entity Framework 6 cache? Or, can I programmatically tell EF to forget about the cache because somet...
c# caching entity-framework linq
asked by usr-local-ΕΨΗΕΛΩΝ

How to disable model caching in Entity Framework 6 (Code First approach)

Following ...MSDN documentation... we can read:...The model for that context is then cached and is for all further instances of the context in the app domain. ...This caching can be disabled by setting the ModelCaching property on the given ModelBuidler..
c# caching ef-code-first ef-model-builder entity-framework-6
asked by Kryszal

Exclude certain entities from second-level caching

I'm using ...EFCache... to provide 2nd-level caching in my EF context....I ran into a problem, where one of my entities is connected to a view which provides row-level security. So this view filters rows based on some parameters. When using 2nd-level cach...
caching entity-framework entity-framework-6
asked by Akbari

How can I view the Entity Framework LINQ query plan cache?

I'm having issues with slow LINQ query compilation in EF6. I know EF caches the compiled query plans for LINQ queries, but that there are some gotchas (e. g. Enumerable.Contains prevents caching). I'd like to view the cache for debugging purposes to valid...
caching entity-framework entity-framework-6 linq
asked by ChaseMedallion

Entity Framework second level cache

I want to use ...EntityFramework.Cache... for one of my tables, but I can not find any information about how does it work with live data and relationships?...I want to know if I add some data to my table or the relation tables does it understand it and re...
.net asp.net-mvc caching entity-framework entity-framework-6
asked by Sepehr Estaki

Entity Framework flexible cache

I am looking for a cache system that works with Entity Framework 6+. Either to find a suitable library or implement it myself....I have already investigated these two open source cache providers:...Second Level Cache for Entity Framework 6.1 ...https://ef...
c# caching database entity-framework entity-framework-6
asked by www.jensolsson.se

Entity Framework 6. Disable ModelCaching

OK, Google, I am not able to googling it. ...Documentation... says...The model for that context is then cached and is for all further instances of the context in the app domain. This caching can be disabled by setting the ModelCaching property on the give...
c# caching entity-framework entity-framework-6
asked by user3272018

Entity Framework - how to cache and share read-only objects

We have an application with a fairly complex entity model where high-performance and low-latency are essential but we have no need for horizontal scalability. The application has a number of event sources in addition to a self-hosted ASP.NET Web API 2. ...
c# caching dbcontext entity-framework entity-framework-6
asked by Rob

Do we need external caching mechanism while EF 6 use caching out of the box?

I recently exposed to Entity Framework 6 ...caching mechanism.... As we might figure from ...this article..., it does it in First-Lever manner....Our system uses EF 6 (code first) along with ...MemoryCache... to improve performance....The main reason we u...
asp.net c# caching entity-framework entity-framework-6
asked by Jacob

Entity Framework 6 - Uncached data with dependency injection

I recently discovered the hard way that EF does caching. I have a root viewmodel that creates the initial ...DbContext.... With every other viewmodel that gets created, I pass that context over. That way, I only have one connection, and I have dependency ...
c# caching dependency-injection entity-framework-6
asked by WynDiesel

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!