public void Initialize()
        {
            TeamDataForumContext context = new TeamDataForumContext();

            this.unitOfWork = new UnitOfWork(context);

            this.countryRepository = this.unitOfWork.CountryRepository;
        }
示例#2
0
 public Repository(TeamDataForumContext context)
     : base(context)
 {
 }
示例#3
0
 protected ChangeRepositoryBase(TeamDataForumContext context)
     : base(context)
 {
 }
示例#4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context">TeamDataForumContext context</param>
 protected SearchRepositoryBase(TeamDataForumContext context)
 {
     this.Context = context;
     this.DbSet   = this.Context.Set <T>();
 }
示例#5
0
 public UnitOfWork(TeamDataForumContext context)
 {
     this.Context            = context;
     this.repositoriesByType = new Dictionary <Type, object>();
 }