Sitemap
StreamWriter

Software development journal

Member-only story

Saving basic data in Blazor

--

In this tutorial, you will learn how to use Blazor to render a form, and save the data from it in a database, using Entity Framework.

The project built in this article is the basis for an email reminder: a web application that will allow the user to enter their email address, a message and a future date, and will send the message to them at that desired date. This is an adaptation of the first chapter from my e-book on full-stack development with ASP.NET Core.

Creating the project

In Visual Studio, create a new project and select “Blazor App”:

Then select a name and location for your application:

On the next page, make sure “ASP.NET Core 3.1" is selected (or a newer version, if available), and click “Create”:

If you are using Visual Studio Code, you can create the app by running:

dotnet new blazorserver -o SavingBasicData

--

--

No responses yet