Category Archives: Windows

Generic Repository for Entity Framework with DbContext and Code First

I’ve recently been developing a small n-tier application using Domain Driven Development. In the interests of having a separation of concerns I built a generic repository that can be passed into my services.   using System; using System.Data; using System.Linq; using System.Data.Entity; using System.Linq.Expressions;   namespace Swink.Repositories { public class Repository<TEntity, TContext> : IRepository<TEntity>, IDisposable [...]

Setup a local Apache server with virtual hosts for PHP development on Windows

This micro-tutorial covers downloading and installing Apache HTTP server and PHP and running it locally with virtual hosts on Windows.  It’s quite straight forward for the experienced user but putting the pieces together for the beginner can sometimes be difficult.  This is a high level tutorial aimed at those newbies so that they can get [...]