python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How do I initialize database with default values in .net6
Till .net5 I've been Seeding data using the following in startup.cs file:
SeedData.Seed(_userManager, _roleManager);
And then in a seperate file SeedData.cs, the following code:
public static class S...

user17974802
Votes: 0
Answers: 1
Where to set smtp for Razor page authenication template?
I am new to .net core and would like to use startup template from VS.
In VS2022, I started a new Razor page project with authenization type set to Individual Accounts. The account registration proces...
newcoder
Votes: 0
Answers: 1
How to get RequireConfirmedAccount in Razor page?
How to retrieve the SignInOptions.RequireConfirmedAccount value(false in my case) which I set in the identity service injection?
builder.Services.AddDefaultIdentity<IdentityUser>(options => o...
newcoder
Votes: 0
Answers: 1
onget handler razor pages
I have a button on a GET Form on asp.net core razor pages
<form method="get" asp-page="Index">
<button type="submit" asp-page="Index" asp-page-handler=...
vega_gf
Votes: 0
Answers: 2