コード例 #1
0
 private void ObtenirIdFonction(string fonction, List <CsModule> modules)
 {
     try
     {
         using (galadbEntities context = new galadbEntities())
         {
             FONCTION _fonction = context.FONCTION.FirstOrDefault(f => f.CODE == fonction);
             //modules.ForEach(h => h.PK_ID = _fonction.PK_ID);
         };
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
 private void ObtenirIdFonction(string fonction, List <CsHabilitationProgram> habilitations)
 {
     try
     {
         using (galadbEntities context = new galadbEntities())
         {
             FONCTION _fonction = context.FONCTION.FirstOrDefault(f => f.CODE == fonction);
             habilitations.ForEach(h => h.FK_IDFONCTION = _fonction.PK_ID);
         };
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }