Ejemplo n.º 1
0
 public IList <EntityEmpleado> Select(EntityEmpleado oEntityEmployee, CTransaction oCTransaction)
 {
     try
     {
         DataEmpleadoRepository data = new DataEmpleadoRepository(oEntityEmployee, "empleado");
         return(data.Select(oCTransaction));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
 public IList <EntityEmpleadoPaginacion> SelectPagging(ref EntityEmpleadoPaginacion oEntityEmployeePaginacion)
 {
     try
     {
         DataEmpleadoRepository data = new DataEmpleadoRepository(EntityEmpleado.Empty, "empleado");
         return(data.SelectPagging(ref oEntityEmployeePaginacion));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 3
0
 public EntityEmpleado SelectByKey(KeyEmpleado okey, CTransaction oCTransaction)
 {
     try
     {
         DataEmpleadoRepository data = new DataEmpleadoRepository(EntityEmpleado.Empty, "empleado");
         return(data.SelectByKey(okey, oCTransaction));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 4
0
 public EntityEmpleado Delete(EntityEmpleado entity, CTransaction transaction)
 {
     try
     {
         DataEmpleadoRepository data = new DataEmpleadoRepository(entity, "empleado");
         entity = data.Delete(transaction);
         return(entity);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 5
0
        public EntityEmpleado Insert(EntityEmpleado entity, CTransaction transaction)
        {
            try
            {
                DataEmpleadoRepository data = new DataEmpleadoRepository(entity, "empleado");

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