/// <summary> /// Constructeur de la classe /// </summary> public Customer() { //Par défaut le client est né aujourd'hui DateOfBirth = DateTime.Now; Invoices = new ManyCollection <Invoice>(this, InvoiceManager.Instance, "clients_id", "Customer"); }
public Invoice() { Date = DateTime.Now; DiscountPercent = 0; Products = new ManyCollection <InvoiceProduct>(this, InvoiceProductManager.Instance, @"factures_id", @"Invoice"); }
public Employee() { DateOfBirth = DateTime.Now; this.EmailOnUpdate = false; Invoices = new ManyCollection <Invoice>(this, InvoiceManager.Instance, "salaries_id", "Employee"); }