public void Initialize() { TeamDataForumContext context = new TeamDataForumContext(); this.unitOfWork = new UnitOfWork(context); this.countryRepository = this.unitOfWork.CountryRepository; }
public Repository(TeamDataForumContext context) : base(context) { }
protected ChangeRepositoryBase(TeamDataForumContext context) : base(context) { }
/// <summary> /// Constructor /// </summary> /// <param name="context">TeamDataForumContext context</param> protected SearchRepositoryBase(TeamDataForumContext context) { this.Context = context; this.DbSet = this.Context.Set <T>(); }
public UnitOfWork(TeamDataForumContext context) { this.Context = context; this.repositoriesByType = new Dictionary <Type, object>(); }