Example #1
0
        /// <summary>
        /// 留学规划类别
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public int ProgramType(JiaJiModels.ApplyModel.StudentProgramType type)
        {
            string sql = "insert into StudentProgramType(TypeName)values(@Name)";

            MySqlParameter[] para =
            {
                new MySqlParameter("@Name", type.TypeName)
            };
            return(MySqlDB.nonquery(sql, System.Data.CommandType.Text, para));
        }
Example #2
0
 /// <summary>
 /// 留学规划类别
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 public int ProgramType(JiaJiModels.ApplyModel.StudentProgramType type)
 {
     return(new JiaJiDAL.ApplyDAL().ProgramType(type));
 }