Ejemplo n.º 1
0
 public EntityEmpresa Delete(EntityEmpresa oEntityEmpresa, CTransaction oCTransaction)
 {
     try
     {
         DataEmpresaRepository data = new DataEmpresaRepository(oEntityEmpresa, "empresa");
         return(data.Delete(oCTransaction));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
 public IList <EntityEmpresa> Select(EntityEmpresa oEntityEmpresa, CTransaction oCTransaction)
 {
     try
     {
         DataEmpresaRepository data = new DataEmpresaRepository(oEntityEmpresa, "empresa");
         return(data.Select(oCTransaction));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 3
0
 public IList <EntityEmpresaPaginacion> SelectPagging(ref EntityEmpresaPaginacion oEntityEmpresaPaginacion)
 {
     try
     {
         DataEmpresaRepository data = new DataEmpresaRepository(EntityEmpresaPaginacion.EmptyPag, "empresa");
         return(data.SelectPagging(ref oEntityEmpresaPaginacion));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 4
0
 public EntityEmpresa SelectByKey(KeyEmpresa oKeyEmpresa, CTransaction oCTransaction)
 {
     try
     {
         DataEmpresaRepository data = new DataEmpresaRepository(EntityEmpresa.Empty, "empresa");
         return(data.SelectByKey(oKeyEmpresa, oCTransaction));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 5
0
        public EntityEmpresa Insert(EntityEmpresa oEntityEmpresa, CTransaction oCTransaction)
        {
            try
            {
                DataEmpresaRepository data = new DataEmpresaRepository(oEntityEmpresa, "empresa");

                oEntityEmpresa = data.Insert(oCTransaction);
                KeyEmpresa key = new KeyEmpresa(DataCreator.CreateInt32(data.CollectionParams.GetParameter("IDEmpresa").Value));
                oEntityEmpresa.Key = key;
                return(oEntityEmpresa);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }