Skip to content
Loading
    
  • } 
  • +1
  • +1
    Hi All
     
    Can anyone help me to add my list of course to the db, the value is null.
    1.  cb.Courses.Add(eNtsaCourseList.Courses);// This is empty and has no vulue.  
    2.   
    3. var courseLicence = regCoursesView.eCourses.CourseLicence; // I can get a value back[5] back here.  
    4.   
    5. How do i then after assigning this value be added to the db column?  
     
    +1
  • +1
    SaveChanges will apply only if eNtsaCourseList.Courses is not null with cb.Courses.Add
    +1