Beispiel #1
0
 public virtual void RemoveCustomerInfo(UsersCustomer customerInfo)
 {
     if (UsersCustomers.Contains <UsersCustomer>(customerInfo))
     {
         var foundInfo = UsersCustomers.Single(ci => ci == customerInfo);
         UsersCustomers.Remove(foundInfo);
     }
 }
Beispiel #2
0
 protected virtual void ClearNavigationProperties()
 {
     CustomerInvoiceGroups.Clear();
     User = null;
     TimeEntryTypes.Clear();
     Projects.Clear();
     Tags.Clear();
     UsersCustomers.Clear();
     Users = null;
 }
Beispiel #3
0
 protected virtual void ClearNavigationProperties()
 {
     Customers.Clear();
     Invoices.Clear();
     Projects.Clear();
     Tasks.Clear();
     TimeEntries.Clear();
     TimeEntries1.Clear();
     UsersCustomers.Clear();
     Projects1.Clear();
     Customers_1.Clear();
     InvoiceComments.Clear();
 }
Beispiel #4
0
 public virtual void AddCustomerInfo(UsersCustomer customerInfo)
 {
     //Update existing info item
     if (this.UsersCustomers.Contains <UsersCustomer>(customerInfo))
     {
         var foundInfo = UsersCustomers.Single(ci => ci.Equals(customerInfo));
         foundInfo.Price = customerInfo.Price;
     }
     else
     {
         UsersCustomers.Add(customerInfo);
     }
 }