Пример #1
0
 public UnitOfInvoice(ZeynepInvoiceTrackingContext ctx)
 {
     _ctx = ctx;
     InvoiceNumberAllocation        = new InvoiceNumberAllocationRepository(_ctx);
     InvoiceNumberRequestRepository = new InvoiceNumberRequestRepository(_ctx);
     InvoiceNumberTypeRepository    = new InvoiceNumberTypeRepository(_ctx);
 }
 public InvoiceNumberAllocationRepository(ZeynepInvoiceTrackingContext ctx) : base(ctx)
 {
     _ctx = ctx;
 }
 public InvoiceNumberRequestRepository(ZeynepInvoiceTrackingContext ctx) : base(ctx)
 {
     _ctx = ctx;
 }
Пример #4
0
 public Repository(ZeynepInvoiceTrackingContext ctx)
 {
     _ctx       = ctx;
     this.dbSet = _ctx.Set <T>();
 }