Example #1
0
        public IEnumerable <InvoiceLineBE> GetInvoiceLines()
        {
            var ids = Context.InvoiceLine.Where(p => p.TrackId == Id).Select(p => p.InvoiceLineId);

            foreach (var id in ids)
            {
                var item = new InvoiceLineBE(CRUDTestDBContextProvider);
                item.Load(id);
                yield return(item);
            }
        }
Example #2
0
        /// <summary>
        /// Return all InvoiceLineBEs
        /// </summary>
        /// <returns></returns>
        public IEnumerable <InvoiceLineBE> GetInvoiceLineBEs()
        {
            using var context = cRUDTestDBContextProvider.GetContext();
            foreach (var id in context.InvoiceLine.Select(p => p.InvoiceLineId))
            {
                InvoiceLineBE invoiceLineBE = new InvoiceLineBE(cRUDTestDBContextProvider);

                invoiceLineBE.Load(id);

                yield return(invoiceLineBE);
            }
        }
Example #3
0
 public void AddToInvoiceLine(InvoiceLineBE invoiceLine)
 {
     invoiceLine.AssignTo(this);
 }