Select theme:
server
directory with Visual Studio Code).server\Authentication
directory.server\Models\ApplicationUser.Custom.cs
with the following content.using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
// Replace [ApplicationName] with the namespace of your Radzen application.
namespace [ApplicationName].Models
{
public partial class ApplicationUser
{
public string Country { get; set; }
}
}
server
directory in a terminal.dotnet ef migrations add Country -c ApplicationIdentityDbContext
. This will create an Entity Framework Core migration which at runtime will add a Country
column to the AspNetUsers
table. It will store the Country
property values.If you haven't installed the EF Core tools before that command will fail. Run
dotnet tool install --global dotnet-ef
to install them.
In order to capture the values of the custom properties created in the previous step you have to update the user management pages.
Check the related article from our CRM application tutorial.
Radzen is free to use. You can also test the premium features for 15 days.
Download NowSelect theme: