Skip to content

Instantly share code, notes, and snippets.

Avatar

Marvelous Solutions Chuhukon

View GitHub Profile
@Chuhukon
Chuhukon / repository
Created Feb 17, 2014
Generic entity framework repository
View repository
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Data.Objects.DataClasses;
using System.Data.Objects;
using System.Data;
using System.Reflection;
@Chuhukon
Chuhukon / EPiServer personalisation example code
Last active Nov 17, 2015
Cross session personalisation with EPiServer
View EPiServer personalisation example code
public abstract class BaseRepository : IDisposable
{
protected IDbConnection Connection { get; set; }
private bool _disposed;
protected ILog Log
{
get { return LogManager.GetLogger(GetType()); }
}