示例#1
0
        public GenericRepository(IForumSystemDbContext context)
        {
            if (context == null)
            {
                throw new ArgumentException("An instance of DbContext is required to use this repository.", "context");
            }

            this.Context = context;
            this.DbSet   = this.Context.Set <T>();
        }
 public DeletableEntityRepository(IForumSystemDbContext context)
     : base(context)
 {
 }
示例#3
0
 public ForumSystemData(IForumSystemDbContext context)
 {
     this.context = context;
 }