public virtual void RemoveCustomerInfo(UsersCustomer customerInfo) { if (UsersCustomers.Contains <UsersCustomer>(customerInfo)) { var foundInfo = UsersCustomers.Single(ci => ci == customerInfo); UsersCustomers.Remove(foundInfo); } }
protected virtual void ClearNavigationProperties() { CustomerInvoiceGroups.Clear(); User = null; TimeEntryTypes.Clear(); Projects.Clear(); Tags.Clear(); UsersCustomers.Clear(); Users = null; }
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(); }
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); } }