Entity Framework 4 – Code First

Entity Framework 4 itself is interesting but what really got me hooked was the CTP 4 preview, and what Microsoft call “Code First”. Code First allows us to describe our model using regular POCO classes, instead of designing our model using either the EF editor or creating in directly in the database.

Read more Entity Framework 4 – Code First

First steps toward EPiServer and ASP.NET MVC

Recently I started a new assignment at a customer where we are going to build their new public web site and their intranet, both of them based on EPiServer CMS 6. The person leading the project is very found of ASP.NET MVC, so my first task was to experiment with EPiServer and ASP.NET MVC, to […]

Read more First steps toward EPiServer and ASP.NET MVC

EPiServer friendly URLs for paginated pages (and why the asp:LinkButton must die)

Recently I got a request from a customer to perform some search engine optimizing for an old EPiServer site we are maintaining. One of the optimizations was to fix the paging on their product page. The products are fetched from an external data source and are not stored as pages in EPiServer, thus normal EPiServer […]

Read more EPiServer friendly URLs for paginated pages (and why the asp:LinkButton must die)

Book review: ASP.NET MVC 1.0 – Test Driven Development

About a month ago I finished reading the book ASP.NET MVC 1.0 – Test Driven Development by Emad Ibrahim. The book weighs in only at about 300 pages, making it easily something you can read in a couple of nights. The book is written in tutorial fashion and is is probably best read with a […]

Read more Book review: ASP.NET MVC 1.0 – Test Driven Development

Rename a Folder using EPiServer.Web.Hosting.UnifiedDirectory

While reading the EPiServer 5 SDK documentation, i found this: Rename a Folder There is no Rename method on the EPiServer.Web.Hosting.UnifiedDirectory class. To rename a folder you need to call the MoveTo method as follows: protected void RenameFolder(string path, string oldName, string name) { if (IsFolder(path)) { UnifiedDirectory directory = System.Web.Hosting.HostingEnvironment.VirtualPathProvider.GetDirectory(path) as UnifiedDirectory; int e […]

Read more Rename a Folder using EPiServer.Web.Hosting.UnifiedDirectory

Functional programming in C# 3.0 and LINQ

I first learned about functional programming a few years ago when I took a class in Haskell programming at my university, Chalmers. While Haskell might not be for everyday use, many of the concepts are very compelling, such as higher order functions, pattern matching, lazy evaluation, list comprehensions, lambda functions and map/fold/filter. Over the years […]

Read more Functional programming in C# 3.0 and LINQ

Newer posts