Ejemplo n.º 1
0
        public void Initialize()
        {
            TeamDataForumContext context = new TeamDataForumContext();

            this.unitOfWork = new UnitOfWork(context);

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