public Context(WalkDatingDataContext context = null, IUserRepository users = null, IEventRepository events = null) { db = context ?? new WalkDatingDataContext(); Users = users ?? new UserRepository(db, false); Events = events ?? new EventRepository(db, false); }
public LinqToSqlRepository(WalkDatingDataContext context) : this(context, false) { }
public LinqToSqlRepository(WalkDatingDataContext context, bool sharedContext) { Context = context; SharedContext = sharedContext; }
public UserRepository(WalkDatingDataContext context, bool sharedContext) : base(context, sharedContext) { }