public InvoiceItem(bool createDatabaseRecord) { p_Items = new RotiList(); if (createDatabaseRecord == true) { InvoiceItemDAO dao = new InvoiceItemDAO(); dao.CreateDatabaseRecord(this); } }
internal void DeleteDatabaseRecord() { InvoiceItemDAO dao = new InvoiceItemDAO(); dao.DeleteDatabaseRecord(this.invoiceID); }
internal void UpdateDatabaseRecord() { InvoiceItemDAO dao = new InvoiceItemDAO(); dao.UpdateDatabaseRecord(this); }
internal void CreateDatabaseRecord() { InvoiceItemDAO dao = new InvoiceItemDAO(); dao.CreateDatabaseRecord(this, true); }