示例#1
0
        /// <summary>
        /// ELIMINA un registro de la Entidad Importaciones.OIDUAProducto
        /// En la BASE de DATO la Tabla : [Importaciones.OIDUAProducto]
        /// </summary>
        /// <param name="pFiltro"></param>
        /// <returns></returns>
        public bool Delete(List <BEOIDUAProducto> plstOIDUAProducto, string pUsuario)
        {
            int codigoRetorno = -1;

            try
            {
                using (_ImportacionesDataContext SQLDC = new _ImportacionesDataContext(conexion))
                {
                    foreach (BEOIDUAProducto oiDUAProducto in plstOIDUAProducto)
                    {
                        SQLDC.omgc_D_OIDUAProducto(oiDUAProducto.codOIDUAProducto, oiDUAProducto.codOIDUA, pUsuario);
                    }
                    codigoRetorno = 0;
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(codigoRetorno == 0 ? true : false);
        }