/// <summary> /// Courses the record avail2 course. /// </summary> /// <param name="c">The c.</param> /// <returns></returns> public static Course CourseRecAvail2Course(COURSE_RECO_AVAIL c) { Course course = new Course(); course.Title = c.TITLE; course.Intro = c.INTRO; course.ID = c.ID; course.Teacher = c.TEACHER_NAME; course.Category = c.RECO_TITLE; course.Price = c.PRICE; course.Rate = c.RATE; course.PG = c.RESTRICT_AGE; course.LessonNum = c.LESSON_NUM; course.RatedUser = c.RATED_USERS; course.ImageUri = DataCenterURI + c.ICON_URL.Replace('\\', '/'); course.IsBuy = false; course.IsTeach = false; return(course); }
public void AddToCOURSE_RECO_AVAIL(COURSE_RECO_AVAIL cOURSE_RECO_AVAIL) { base.AddObject("COURSE_RECO_AVAIL", cOURSE_RECO_AVAIL); }
public static COURSE_RECO_AVAIL CreateCOURSE_RECO_AVAIL(int ID, decimal pRICE, string tITLE, string rECO_TITLE, int rECO_ID) { COURSE_RECO_AVAIL cOURSE_RECO_AVAIL = new COURSE_RECO_AVAIL(); cOURSE_RECO_AVAIL.ID = ID; cOURSE_RECO_AVAIL.PRICE = pRICE; cOURSE_RECO_AVAIL.TITLE = tITLE; cOURSE_RECO_AVAIL.RECO_TITLE = rECO_TITLE; cOURSE_RECO_AVAIL.RECO_ID = rECO_ID; return cOURSE_RECO_AVAIL; }