/// <summary>
        /// Saves a record to the MateriaCarrera table.
        /// </summary>
        public void Insert(MateriaCarrera materiaCarrera)
        {
            ValidationUtility.ValidateArgument("materiaCarrera", materiaCarrera);

            SqlParameter[] parameters = new SqlParameter[]
            {
                new SqlParameter("@IdMateria", materiaCarrera.IdMateria),
                new SqlParameter("@IdCarrera", materiaCarrera.IdCarrera)
            };

            SqlClientUtility.ExecuteNonQuery(connectionStringName, CommandType.StoredProcedure, "MateriaCarreraInsert", parameters);
            SqlConnection.ClearAllPools();
        }
        /// <summary>
        /// Creates a new instance of the MateriaCarrera class and populates it with data from the specified SqlDataReader.
        /// </summary>
        private MateriaCarrera MapDataReader(SqlDataReader dataReader)
        {
            MateriaCarrera materiaCarrera = new MateriaCarrera();
            materiaCarrera.IdMateria = dataReader.GetInt32("IdMateria", 0);
            materiaCarrera.IdCarrera = dataReader.GetInt32("IdCarrera", 0);

            return materiaCarrera;
        }