Merge pull request #7977 from abpframework/berkan/update-article

Update community article: How to Add Custom Properties to the User Entity
pull/7988/head
Alper Ebicoglu 5 years ago committed by GitHub
commit 2a622bed28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -78,7 +78,7 @@ public static class CustomizeUserDemoEfCoreEntityExtensionMappings
nameof(AppUser.Title),
(entityBuilder, propertyBuilder) =>
{
propertyBuilder.IsRequired();
propertyBuilder.HasDefaultValue();
propertyBuilder.HasMaxLength(UserConsts.MaxTitleLength);
}
).MapEfCoreProperty<IdentityUser, int>(

Loading…
Cancel
Save