예제 #1
0
        public void updateCode(codeGenerator codeGen)
        {
            try
            {
                codeGenerator codeG = (from c in ctx.codeGenerators
                         where c.codeId == codeGen.codeId
                         select c).FirstOrDefault();

                codeG.lastValue = codeGen.lastValue;
                ctx.SaveChanges();
            }
            catch (Exception exception)
            {
                errorobj.WriteErrorLog("HelperFacade-updateCode():::" + exception.ToString());
            }
        }
예제 #2
0
 public codeGenerator getCode(string codeName)
 {
     codeGenerator codeG;
     try
     {
         codeG = new codeGenerator();
         codeG = (from c in ctx.codeGenerators
                 where c.codeName == codeName
                 select c).FirstOrDefault();
     }
     catch (Exception exception)
     {
         errorobj.WriteErrorLog("HelperFacade-codeGenerator():::" + exception.ToString());
         codeG = new codeGenerator();
     }
     return codeG;
 }