---
title: Working with generated classes
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

> **Info:** 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](https://docs.kentico.com/13tutorial/using-the-xperience-interface.md).

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.

   > **Note:** 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 **MEDIOClinic**project.
5. Click the **Show all files** button to see the files you have copied in the solution.

   ![Displaying files not included in the project](https://docs.kentico.com/docsassets/13tutorial/working-with-generated-classes/VS_BeforeInclude.png "Displaying files not included in the project")
6. Select the **Models/Generated** folder, right-click to open the context menu, and select **Include In Project**.

   ![Including external files](https://docs.kentico.com/docsassets/13tutorial/working-with-generated-classes/VS_AfterInclude.png "Including external files")
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](https://docs.kentico.com/13tutorial/developer-tutorial/asp-net-mvc-5-development-tutorial/adding-pages-to-the-site.md) — **Next page:** [Creating the website layout](https://docs.kentico.com/13tutorial/developer-tutorial/asp-net-mvc-5-development-tutorial/creating-the-website-layout.md)

**Completed pages:** 6 of 10
