Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RegistrationRepository"/> class.
 /// Initializes a new instance of the <see cref="Repository{TEntity}"/> class.
 /// </summary>
 /// <param name="context">
 /// The context.
 /// </param>
 public RegistrationRepository(ConferenceContext context)
 {
     this._context = context;
     this._dbSet   = context.Set <Registration>();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Repository{TEntity}"/> class.
 /// </summary>
 /// <param name="context">
 /// The context.
 /// </param>
 public Repository(ConferenceContext context)
 {
     this._context = context;
     this._dbSet   = context.Set <TEntity>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConferenceRepository"/> class.
 /// </summary>
 /// <param name="context">
 /// The context.
 /// </param>
 public ConferenceRepository(ConferenceContext context)
 {
     this._context = context;
     this._dbSet   = context.Set <Conference>();
 }