Aspnetcore.docs: What is the purpose of NormalizedX columns in Identity tables?

Created on 30 Jan 2020  Â·  5Comments  Â·  Source: dotnet/AspNetCore.Docs

Hi,

EF create tables for identity, in some tables there are NormalizedX columns, e.g: NormalizedName in AspNetRoles table.

  1. What is the purpose of this kind of columns?
  2. How EF normalize data for this columns?

I didn't find any documentation about this topic.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

All 5 comments

Good question. I'll try to get an answer. In the mean time, moved to Master issue: Introduction to Identity #16230

@HaoK What is the purpose of NormalizedX columns in Identity tables?

EF create tables for identity, in some tables there are NormalizedX columns, e.g: NormalizedName in AspNetRoles table.

  1. What is the purpose of this kind of columns?
  2. How EF normalize data for this columns?

The normalized fields are what we do comparisons against for lookups, the regular columns are what you can think of as the display names, so the casing is preserved.

@HaoK what about second question?

EF doesn't normalize the column at all, the user manager uses the ILookupNormalizer interface that by default just calls to upper invariant I believe

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danroth27 picture danroth27  Â·  3Comments

wgutierrezr picture wgutierrezr  Â·  3Comments

Raghumu picture Raghumu  Â·  3Comments

Mattacks picture Mattacks  Â·  3Comments

Rick-Anderson picture Rick-Anderson  Â·  3Comments