Пример #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;
     }
 }
Пример #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;
     }
 }
Пример #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;
     }
 }
Пример #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;
     }
 }
Пример #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;
            }
        }