Adding the Classes
Explore how to add the ExpenseType and Expense classes to your Blazor WebAssembly expense tracker. Learn to implement data annotations for validation on properties like date, vendor, expense type, and amount, ensuring a robust form structure.
We'll cover the following...
We'll cover the following...
We need to add both an ExpenseType class and an Expense class. We do this as follows:
Right-click the
ExpenseTracker.Sharedfolder and select the “Add, Class” option from the menu.Name the new class
ExpenseType.Click the “Add” button. ...