Example #1
0
 public CodeGenerator getCodeGF(string prefix)
 {
     codeGenerator cg = ctx.codeGenerators.FirstOrDefault(o => o.prefix == prefix);
     CodeGenerator cc = new CodeGenerator();
     cc.Prefix = cg.prefix;
     cc.LastValue = cg.lastValue;
     return cc;
 }
Example #2
0
 public void updateCodeGeneratorGF(CodeGenerator cg)
 {
     codeGenerator c = ctx.codeGenerators.FirstOrDefault(o => o.prefix == cg.Prefix);
     c.lastValue = cg.LastValue;
     ctx.SaveChanges();
 }