Category Archives: C Sharp

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 [...]

Media Browser Genre Symlink Generator

I’ve been an adamant user of Media Browser for Windows Media Center 7 for a while now.  It’s a great (free!) plugin that allows you to organize and view your collection of movies and TV shows in a very cool interface.  It has a cover flow (iTunes esk) style of interface that I especially like that has [...]