Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomerRepository" /> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public CustomerRepository(SwastikaExtensionCustomerContext context) : base(context)
 {
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Repository" /> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public Repository(SwastikaExtensionCustomerContext context)
 {
     Db    = context;
     DbSet = Db.Set <TEntity>();
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UnitOfWork" /> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public UnitOfWork(SwastikaExtensionCustomerContext context)
 {
     _context = context;
 }