Blazor Server - Individual User Accounts

Cenk 1,041 Reputation points
2022-07-06T06:23:12.743+00:00

Hi guys,

I wonder how I can check if individual user accounts are selected in my project? When I run migrations, business entity tables are created but there are no tables related to users, roles, etc on SQL Express Server.

217995-blazor.png

218038-blazor-tables.png

It seems that there are 2 migrations, one is in EFCore (IMSContext which my tables are created) and the other is in the WebApp.
217974-blazor.png

Changing the connection string did the trick in the Program.cs :)

var connectionString = builder.Configuration.GetConnectionString("InventoryManagement");  
builder.Services.AddDbContext<ApplicationDbContext>(options =>  
    options.UseSqlServer(connectionString));  

Now the question is, is there any tutorial out there to implement adding users and roles to the application only by an admin and sending notification e-mail to the registered user.

Developer technologies | .NET | Blazor
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Washington 921 Reputation points MVP
    2022-07-06T17:28:32.963+00:00

    This tutorial may help: A Simple Blazor User and Role Manager

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.