Exemplo n.º 1
0
 public EntityPedido Delete(EntityPedido oEntityPedido, CTransaction oCTransaction)
 {
     try
     {
         DataPedidoRepository data = new DataPedidoRepository(oEntityPedido, "pedido");
         return(data.Delete(oCTransaction));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
 public IList <EntityPedido> Select(EntityPedido oEntityPedido, CTransaction oCTransaction)
 {
     try
     {
         DataPedidoRepository data = new DataPedidoRepository(oEntityPedido, "pedido");
         return(data.Select(oCTransaction));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 3
0
 public IList <EntityPedidoPaginacion> SelectPagging(ref EntityPedidoPaginacion oEntityPedidoPaginacion)
 {
     try
     {
         DataPedidoRepository data = new DataPedidoRepository(EntityPedidoPaginacion.Empty, "pedido");
         return(data.SelectPagging(ref oEntityPedidoPaginacion));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 4
0
 public EntityPedido SelectByKey(KeyPedido okey, CTransaction oCTransaction)
 {
     try
     {
         DataPedidoRepository data = new DataPedidoRepository(EntityPedido.Empty, "pedido");
         return(data.SelectByKey(okey, oCTransaction));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 5
0
 public EntityPedido Insert(EntityPedido oEntityPedido, CTransaction oCTransaction)
 {
     try
     {
         DataPedidoRepository data = new DataPedidoRepository(oEntityPedido, "pedido");
         oEntityPedido = data.Insert(oCTransaction);
         KeyPedido key = new KeyPedido(DataCreator.CreateInt32(data.CollectionParams.GetParameter("IDPedido").Value));
         oEntityPedido.Key = key;
         return(oEntityPedido);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }