Beispiel #1
0
 public ExecuteSomeBusinessOperation(input parameters here)
 {
     // Validate input parameters
     using (PricedNotesContext ctxt = new PricedNotesContext())
     {
         ctxt.Requests.Add(...);
         ctxt.RequestData.Remove(...);
         // other logic
         ctxt.SaveChanges();
     }
 }
Beispiel #2
0
 public EfNotesService(PricedNotesContext ctxt)
 {
     _ctxt = ctxt;
 }