Search⌘ K
AI Features

Adding the Product Class

Explore the process of creating a Product class within a Blazor WebAssembly project. Understand how to organize your project by adding models and sample data, including JSON files and images, to support a persistent shopping cart using the application state pattern.

We'll cover the following...

We need to add the products that are for sale. We do this as follows:

  1. Right-click the ShoppingCart project and select the “Add, New Folder” option from the menu.
  2. Name the new folder Models.
  3. Right-click the Models folder and select the “Add, Class” option from the menu.
  4. Name the
...