示例#1
0
 // Constructor
 public StudentRepository(CSharp_RepositoryPatternContext context)
 {
     this._context = context;
 }
示例#2
0
 // Constructor
 public FacultyRepository(CSharp_RepositoryPatternContext context)
 {
     this._context = context;
 }
 // Constructor
 public GenericRepository(CSharp_RepositoryPatternContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }