ASP.NET

Using ORMs to cache data (Part III): Entity Framework & Good Practices

Posted on by osmirnov Posted in .NET, ASP.NET, ORMs | Leave a comment

In the previous post we looked at the common theory of caching in the NHibernate context. As you noted, the ORM has a well thought-out cache system for avoiding repeated queries to a database without modifying business logic of a destination application. All that you need to do is to config of the ORM. Cool? Definitely. In this post we look at the possibilities of caching data in the Entity Framework. And also to describe the good practices of caching. Read more

Using ORMs to cache data (Part II): Theory of caching & NHibernate

Posted on by osmirnov Posted in .NET, ASP.NET, ORMs | Leave a comment

So, in the previous post we have looked at a practical example of implementing caching in a web application. And despite the fact that we have achieved our goal,  we have left open several questions, which forced us to doubt our approach. In this post we’ll find the right answers to these questions, talk about general concepts of caching in ORM and consider how they should NHibernate. Read more

Using ORMs to cache data (Part I): Practical scenario

Posted on by osmirnov Posted in .NET, ASP.NET, ORMs | Leave a comment

In the previous post I’ve already touched upon the issue of caching using ORMs. But since, it’s pretty deep and breathtaking topic we will continue to dive into the details. In this series of posts we’ll look at real-world scenario of caching in a web application (all patterns and practices also apply to the development of other kinds of applications), the problems confronting the developer, as well as opportunities offered by NHibernate & Entity Framework to cache data.
Read more

CacheDependency on domain model

Posted on by osmirnov Posted in .NET, ASP.NET, ORMs | 1 Comment

If you have ever used a cache for your web applications, you probably know about CacheDependency. If not, then don’t worry. It’s just a class that allows you to track changes in a source whose data you cache. Strictly speaking, tracking logic is implemented by derived classes. For example, for MS SQL Server it’s SqlCacheDependency class. This concept has one serious problem. That is breaking of an abstraction level created by an ORM. Let’s discuss it in this post.
Read more

Why my blog not on ASP.NET

Posted on by osmirnov Posted in ASP.NET, Life | Leave a comment

The developers aren’t usual bloggers. They really know how a blog engine has to work. Therefore a developer wants to start blogging they think about it that would be as a platform. Out-of-box solution or developed by them? I’ve already made my desicion but sometimes people ask me why my blog is not on ASP.NET. And in this post I’ll answer why.
Read more