//public int InsertaActualiza_C_CAMPO_ADICIONAL(string tipo_transaccion, SPE_OBTIENE_C_CAMPO_ADICIONAL_Result V_C_CAMPO_ADICIONAL, string usuario, string programa) //{ // using (context = new SistemaSigeinEntities()) // { // //Declaramos el objeto de valor de retorno // ObjectParameter pout_clave_retorno = new ObjectParameter("POUT_CLAVE_RETORNO", typeof(int)); // context.SPE_INSERTA_ACTUALIZA_C_CAMPO_ADICIONAL(pout_clave_retorno, V_C_CAMPO_ADICIONAL.ID_CAMPO, V_C_CAMPO_ADICIONAL.CL_CAMPO, V_C_CAMPO_ADICIONAL.NB_CAMPO, V_C_CAMPO_ADICIONAL.DS_CAMPO, V_C_CAMPO_ADICIONAL.FG_REQUERIDO, V_C_CAMPO_ADICIONAL.NO_VALOR_DEFECTO, V_C_CAMPO_ADICIONAL.CL_TIPO_DATO, V_C_CAMPO_ADICIONAL.CL_DIMENSION, V_C_CAMPO_ADICIONAL.CL_TABLA_REFERENCIA, V_C_CAMPO_ADICIONAL.CL_ESQUEMA_REFERENCIA, usuario, usuario, programa, programa, V_C_CAMPO_ADICIONAL.FG_MOSTRAR, V_C_CAMPO_ADICIONAL.ID_CATALOGO_LIST,V_C_CAMPO_ADICIONAL.FG_ADICIONAL,tipo_transaccion); // //regresamos el valor de retorno de sql // return Convert.ToInt32(pout_clave_retorno.Value); ; // } //} public int Elimina_C_CAMPO_ADICIONAL(int?ID_CAMPO = null, string usuario = null, string programa = null) { using (context = new SistemaSigeinEntities()) { //Declaramos el objeto de valor de retorno ObjectParameter pout_clave_retorno = new ObjectParameter("POUT_CLAVE_RETORNO", typeof(int)); context.SPE_ELIMINA_C_CAMPO_ADICIONAL(pout_clave_retorno, ID_CAMPO, usuario, programa); //regresamos el valor de retorno de sql return(Convert.ToInt32(pout_clave_retorno.Value)); } }