Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/13 15:25:31 (11 years ago)
Author:
spimming
Message:

#1888:

  • Model classes implement new interface to track current state of entity
  • Mark EntityState property as 'not mapped'
  • Set hook to initialize entity as unchanged
  • Extension method for DbContext to apply changes only on modified entity
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Optimization.Billing/Business/BillingService.cs

    r9619 r9645  
    4242      //TODO: Authentication
    4343      //TODO: Enable Transaction
    44       BillingDao.AddOrder(order);
     44      BillingDao.InsertOrUpdateOrder(order);
    4545    }
    4646
     
    5959
    6060    public void UpdateOrder(Order order) {
    61       throw new System.NotImplementedException();
     61      //TODO: Authentication
     62      //TODO: Enable Transaction
     63      BillingDao.InsertOrUpdateOrder(order);
    6264    }
    6365
     
    7577      //TODO: Authentication
    7678      //TODO: Enable Transaction
    77       BillingDao.AddUser(user);
     79      BillingDao.InsertOrUpdateUser(user);
    7880    }
    7981
     
    104106    }
    105107
     108    public void SaveInvoice(Invoice invoice) {
     109      //TODO: Authentication
     110      //TODO: Enable Transaction
     111      BillingDao.InsertOrUpdateInvoice(invoice);
     112    }
     113
    106114    #endregion
    107115  }
Note: See TracChangeset for help on using the changeset viewer.