Ejemplo n.º 1
0
 /// <summary>
 /// Metoda de clasa pentru obtinerea DataRow-ului corespunzator obiectului in baza de date
 /// </summary>
 /// <param name="pId"></param>
 /// <returns>Un DataRow ce contine informatiile corespunzatoare obiectului</returns>
 /// <remarks></remarks>
 private static DataRow GetDataRowForObjet(int pId, IDbTransaction pTranzactie)
 {
     if (pId <= 0)
     {
         throw new IdentificareBazaImposibilaException("BClientiReprezentanti");
     }
     using (DataSet ds = DClientiReprezentanti.GetReprezentantById(pId, pTranzactie))
     {
         if (ds.Tables[0].Rows.Count > 0)
         {
             return(ds.Tables[0].Rows[0]);
         }
         else
         {
             throw new IdentificareBazaImposibilaException("BClientiReprezentanti");
         }
     }
 }