AI agents: the content index is at /llms.txt. Every page is also available as Markdown — send the request header Accept: text/markdown, or append .md to the page URL.
Xperience Docs

Cookie consent

We use necessary cookies (opens in a new tab) to run our website and improve your experience while browsing. Additional cookies are only used with your consent. You may revoke your consent on the Cookies Policy (opens in a new tab) page or in your browser at any time.

Configure (opens in a new tab)
  • Documentation
    InstallationUsing the Xperience interfaceDeveloping websitesConfiguring XperienceManaging usersSecuring websitesDeploying websitesManaging website contentMultilingual websitesMacro expressionsExternal utilitiesIntegrating 3rd party systemsCustom developmentE-commerce featuresOn-line marketing featuresRelease notes - Xperience 13Xperience terminology glossary
  • Tutorial
    Using the Xperience interfaceDeveloper tutorialBusiness tutorialResource hub for marketers
  • API Examples
    ConfigurationContent managementDevelopmentE-commerceOn-line marketingSocial media
  1. Home
  2. Developer tutorial
  3. ASP.NET MVC 5 development tutorial
  4. Working with generated classes

Working with generated classes


Was this page helpful?

Send us feedback Go back to top
  • Community Questions & Answers (opens in a new tab)
  • Contact support (opens in a new tab)

This page is a part of a tutorial, which you should follow sequentially from beginning to end. Go to the first page: Using the Xperience interface.

To use the generated Item wrapper classes of your page types (e.g., Home.generated.cs and MedicalCenter.generated.cs) in the development of your tutorial website, you need to copy them from the Xperience project to your MEDIOClinic MVC application. 

  1. Locate the classes you have generated in your Xperience project files.

    By default, the classes are stored in the ~\CMS\Old_App_Code\CMSClasses\Pages\MEDIO folder, which translates into, e.g., C:\inetpub\wwwroot\Xperience13\CMS\Old_App_Code\CMSClasses\Pages\MEDIO on the file system.

  2. Open your MEDIOClinic project folder in, e.g., Windows Explorer, and create a new Generated folder under your Models folder, e.g., C:\inetpub\wwwroot\Xperience13\MEDIOClinic\Models\Generated.

  3. Copy the classes that represent your page types to the Generated folder.

  4. Open the MEDIOClinic solution in Visual Studio andselect the MEDIOClinicproject.

  5. Click the Show all files button to see the files you have copied in the solution.

  6. Select the Models/Generated folder, right-click to open the context menu, and select Include In Project.

  7. Rebuild your solution.

You have added the classes generated for your page types to the MEDIOClinic application. They will allow you to work with page data in a strongly-typed fashion.

Previous page: Adding pages to the site — Next page: Creating the website layout

Completed pages: 6 of 10