Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Repository{T}"/> class.
 /// </summary>
 /// <param name="ctx">The CTX.</param>
 public Repository(HigherOrLowerContext ctx)
 {
     context = ctx;
     dbset   = context.Set <T>();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HigherOrLowerDataAccessor"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public HigherOrLowerDataAccessor(HigherOrLowerContext context) => this.context = context;