---
title: Working with generated classes in the MVC application
---

> 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 the beginning to the end. [Go to the first page: Getting started with Kentico](https://docs.kentico.com/k12sptutorial/getting-started-with-kentico.md).

To use the generated wrapper classes of your page types (e.g., _Home.generated.cs_ and _HomeProvider.generated.cs_) in the development of your tutorial website, you need to copy them from the Kentico project to your **MEDIOClinic** MVC application. 

1. Locate the six classes you have generated in your Kentico 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\Kentico12\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\Kentico12\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/k12sptutorial/working-with-generated-classes-in-the-mvc-application/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/k12sptutorial/working-with-generated-classes-in-the-mvc-application/VS_AfterInclude.png "Including external files")
7. Build your solution.

You have added the classes generated for your page types to the MEDIOClinic application. They will allow you to retrieve the page content from the database and design its presentation on the live site.

**Previous page:** [Adding content-only pages to the MVC site](https://docs.kentico.com/k12sptutorial/mvc-development/adding-content-only-pages-to-the-mvc-site.md) — **Next page:** [Creating the website layout](https://docs.kentico.com/k12sptutorial/mvc-development/creating-the-website-layout.md)

**Completed pages:** 6 of 10
