# Model

*noun*

say it: **“MOD-ul”** **/ˈmɒdəl/**

A class whose job is to carry data, with one property for each value.

## What is **Model** in C#?

**Model** — A class whose job is to carry data: one property for each value, such as each column of a database row. The rest of the program passes models around instead of loose values.

```csharp
class Product
{
    public int ProductId { get; set; }
    public string ProductName { get; set; } = "";
    public decimal UnitPrice { get; set; }
}
```

## In a sentence

- “Each row from the Products table became a Product **model** with ProductId, ProductName and UnitPrice.”

Level: Apprentice · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=2)

Updated: October 28, 2026

Source: https://www.ask-codey.com/glossary/model-c-sharp
