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