
EF
Get flash to fully experience Pearltrees
<ServiceContract()> Public Interface IDocumentService <OperationContract()> Sub SaveDocument(documentInfo As DocumentInfo)
Managing BLOBs using SQL Server FileStream via EF and WCF streaming | Peter Meinl: Software Development Tips
Entity Framework Code First DbContext - Validation | Headspring
Introduction In this post we will be discussing how DbContext API helps us in validation of entities in Entity Framework Code First workflow. The API allows various options to define validation of entities and their properties. It also makes it easier to execute these validations providing validation results.Entity Framework Code First Caching « Sergey Barskiy's Blog
As I was playing around with Entity Framework code first and ASP.NET MVC, it became pretty obvious that caching of some of the EF query results would be pretty handy. For example, if you look at my post that includes a simple ASP.NET MVC blogging application, you could see that I have to keep fetching the list of categories every time I render the blog entry screen. This is because I want to keep my application stateless. This is not very efficient.Tracing and Caching for Entity Framework available on MSDN Code Gallery - Jaroslaw Kowalski
We have just released a sample that shows how to extend Entity Framework in interesting ways by plugging into ADO.NET provider interface. The sample provides two extensions: EFTracingProvider – which adds the ability to log all SQL commands that are executed (similar to LINQ to SQL’s DataContext.Log EFCachingProvider – which adds transparent query results cache to EF The sample comes with implementation of distributed cache which uses Velocity CTP 3 as well as an adapter for ASP.NET and simple in-memory cache implementation. Because the sample is quite large and uses many advanced techniques, it’s impossible to fully explain it all in one blog post.Tip 14 - How to cache Entity Framework Reference Data - Meta-Me
Scenario: In order to make applications perform it makes a lot of sense to cache commonly used reference data. Good examples of reference data include things like States, Countries, Departments etc.Exposing the ORM Cache
Exposing the ORM Cache Familiarity with ORM caching issues can help prevent performance problems and bugs. In the early 1990s, when object-oriented languages emerged into the mainstream of software development, a noticeable surge in productivity occurred as developers saw new and better ways to create software programs. Although the new and efficient object programming paradigm was hailed and accepted by a growing number of organizations, relational database management systems remained the preferred technology for managing enterprise data. Thus was born ORM (object-relational mapping), out of necessity, and the complex challenge of saving the persistent state of an object environment in a relational database subsequently became known as the object-relational impedance mismatch. Complex problems sometimes demand complex solutions, and ORM software is no exception.ObjectContext и DbContext в Entity Framework (EF) поддерживают информацию о состоянии сущностей, которыми они управляют. Но, как только контекст выходит из области видимости, данная информация перестает быть доступной. Это называют кешированием первого уровня, и оно действует лишь в течение жизненного цикла транзакции. Если вы пишете распределенные приложения с применением EF, где контекст часто меняется (а значит, ваша информация о состоянии доступна не всегда), кеширование первого уровня вряд ли обеспечит ваши потребности.

