Esempio n. 1
0
 public EntityProducto Update(EntityProducto oEntityProducto, CTransaction transaction)
 {
     try
     {
         DataProductoRepository data = new DataProductoRepository(oEntityProducto, "producto");
         return(data.Update(transaction));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 2
0
 public EntityProducto SelectByKey(KeyProducto okey, CTransaction oCTransaction)
 {
     try
     {
         DataProductoRepository data = new DataProductoRepository(EntityProducto.Empty, "producto");
         return(data.SelectByKey(okey, oCTransaction));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 3
0
 public IList <EntityProductoPaginacion> SelectPagging(ref EntityProductoPaginacion oEntityProductoPaginacion)
 {
     try
     {
         DataProductoRepository data = new DataProductoRepository(EntityProducto.Empty, "producto");
         return(data.SelectPagging(ref oEntityProductoPaginacion));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 4
0
 public IList <EntityProducto> Select(EntityProducto oEntityProducto, CTransaction oCTransaction)
 {
     try
     {
         DataProductoRepository data = new DataProductoRepository(oEntityProducto, "producto");
         return(data.Select(oCTransaction));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 5
0
        public EntityProducto Insert(EntityProducto entity, CTransaction transaction)
        {
            try
            {
                DataProductoRepository data = new DataProductoRepository(entity, "producto");

                entity = data.Insert(transaction);
                KeyProducto key = new KeyProducto(DataCreator.CreateInt32(data.CollectionParams.GetParameter("IDProducto").Value));
                entity.Key = key;
                return(entity);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }