Our Blog

.NET MVC3, how to avoid session restart in 100 MB application pool

Posted on Monday, 27 June 2011 by nestor in How To

We recently had some problems with one our host servers, they set a limitation of 100 MB memory for dedicated application pools. While is understandable they set such a limit, problem is that limit is very low for .net mvc websites, since an empty website already needs 30 MB, so as soon as you add database and get traffic, it easy goes above 100 MB, causing the application pool to restart and session is lost having all your visitors logged out.

Continue reading…

How to disable Identity for int primary keys using EF Code-First

Posted on Monday, 02 May 2011 by nestor in How To

EF Code-First uses conventions to beautifully create identity field for us when defining int primary keys. However, there are times that we don't want the database generate the primary key values for us. Here are two ways to avoid Code-First set identity fields on int primary keys.

Continue reading…

An Ideal Folder Structure for .NET MVC

Posted on Thursday, 06 January 2011 by nestor in Programming

When I started in .NET Webforms I didn't have much trouble finding a folder structure to follow since Visual Studio offered you application folders like "App_Code" and most app examples put "BLL", "DAL" inside there and so on.

Continue reading…

  • 1
| total: 3 | page: 1 / 1