Abp: AppUser.ExtraProperties

Created on 3 Feb 2020  路  2Comments  路  Source: abpframework/abp

The property 'AppUser.ExtraProperties' could not be mapped, because it is of type 'Dictionary' which is not a supported primitive type or a valid entity type. Either explicitly map this property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'

question

All 2 comments

Check #1517 #1414 #927

I resolved for now putting
builder.Ignore<AppUser>();
inside the OnModelCreating method
only (important, only) when I need to use add-migration, update-database

For the rest (when I'm not updating the db ) I use the default code:

   builder.Entity<AppUser>(b =>
                {
                    b.ToTable(AbpIdentityDbProperties.DbTablePrefix + "Users"); //Sharing the same table "AbpUsers" with the IdentityUser

                    b.ConfigureByConvention();
                    b.ConfigureAbpUser();
Was this page helpful?
0 / 5 - 0 ratings

Related issues

hikalkan picture hikalkan  路  3Comments

SmallShrimp picture SmallShrimp  路  3Comments

ChangYinShung picture ChangYinShung  路  3Comments

hikalkan picture hikalkan  路  3Comments

wocar picture wocar  路  3Comments