Skip to content

src/Identity/Extensions.Stores/src/IdentityRole.cs Name Should be required and not nullable #44497

Closed as not planned
@luizfbicalho

Description

@luizfbicalho

Summary

I didn't understand why IdentityRole.Name, IdentityRole.NormalizedName , IdentityUser.UserName and IdentityUser.NormalizedUserName are nullable, this are required properties and should be required

Motivation and goals

The major problem that I see is that i every place that I use the IdentityRole and IdentityUser I'll need to test if the name is null, and doesn't seem to be a reason for that.

The issue is in the #40007 change

Metadata

Metadata

Assignees

Labels

✔️ Resolution: By DesignResolved because the behavior in this issue is the intended design.Status: Resolvedarea-identityIncludes: Identity and providersdesign-proposalThis issue represents a design proposal for a different issue, linked in the description

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions