partial void DeleteOrder(Order instance);
partial void InsertOrder(Order instance);
partial void UpdateOrder(Order instance);
private void detach_Orders(Order entity) { this.SendPropertyChanging(); entity.User = null; }
private void attach_Orders(Order entity) { this.SendPropertyChanging(); entity.User = this; }
private void detach_Orders1(Order entity) { this.SendPropertyChanging(); entity.Contact1 = null; }
private void attach_Orders1(Order entity) { this.SendPropertyChanging(); entity.Contact1 = this; }
public void EnsureCanViewOrder(Order order) { if (!IsAdministrator) { if (order.Basket.UserId != UserId) { throw new ApplicationException("You are attempting to view an order that was not created by you"); } } }