Beispiel #1
0
 public void AddCommandedGenerator(CommandedGenerator cg)
 {
     lock (emsContext)
     {
         emsContext.CommandedGenerators.Add(cg);
     }
 }
Beispiel #2
0
 public void UpdateCommandedGenerator(CommandedGenerator cg)
 {
     emsContext.Entry(cg).State = System.Data.Entity.EntityState.Modified;
 }