BillStore.cs 639 B

12345678910111213141516171819202122
  1. using System;
  2. using Comal.Classes;
  3. namespace Comal.Stores
  4. {
  5. internal class BillStore : BaseStore<Bill>
  6. {
  7. protected override void BeforeSave(Bill entity)
  8. {
  9. base.BeforeSave(entity);
  10. //UpdateAggregate<Supplier>(entity, entity.SupplierLink, Sum<Supplier>(b => b.Balance, s => s.Balance));
  11. }
  12. protected override void BeforeDelete(Bill entity)
  13. {
  14. base.BeforeDelete(entity);
  15. entity.SupplierLink.ID = Guid.Empty;
  16. //UpdateAggregate<Supplier>(entity, entity.SupplierLink, Sum<Supplier>(b => b.Balance, s => s.Balance));
  17. }
  18. }
  19. }