You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would seem that UrlSlug is part of the generated code from CMS and I see that it is part of final solution, but it never made it to the course scripts, probably in CIRepository that is used to generate CMS pages in database...??
What went wrong?
This breaks the live site by throwing an error on DoctorRepository.MapDtoProperties
trying to map to UrlSlug
dto.UrlSlug = page.UrlSlug;
The text was updated successfully, but these errors were encountered:
As I mentioned in #95, I originally had the conventional ASP.NET routing in the code base, alongside the CTB router-based code. (I didn't explain the conventional routing in the course script, however.) Then I removed the conventional routing from the code, leaving only the CTB router in there. The UrlSlug fields in generated model classes were a residue of the old era but they didn't do any harm in the solution.
I regenerated the model classes without the UrlSlug field. You probably started the Essentials module long ago, when the UrlSlug field resided in the MapDtoProperties method, and finished the course later.
Hopefully this explains the problem and you're free to continue with the course.
Brief bug description
It would seem that UrlSlug is part of the generated code from CMS and I see that it is part of final solution, but it never made it to the course scripts, probably in CIRepository that is used to generate CMS pages in database...??
What went wrong?
This breaks the live site by throwing an error on DoctorRepository.MapDtoProperties
trying to map to UrlSlug
dto.UrlSlug = page.UrlSlug;
The text was updated successfully, but these errors were encountered: