Starts in:
1 DAY
20 HRS
30 MIN
14 SEC
Starts in:
1 D
20 H
30 M
14 S

Activities of "Annwar"

Question

Hi, I have been trying to add properties in AppUser, we are using MongoDb, it is not reflecting in dB, I have also try to initialize those properties in AppUser constructor they are still not reflecting, how can I extend AppUser Entity . What I did is I updated the AppUser with following code

public virtual bool MyProperty { get; private set; }

    private AppUser()
    {
        MyProperty = true;
    }

I also tried diffrent things in in following method like protected override void CreateModel(IMongoModelBuilder modelBuilder) { base.CreateModel(modelBuilder);

        modelBuilder.Entity<AppUser>(b =>
        {
            /* Sharing the same "AbpUsers" collection
             * with the Identity module's IdentityUser class. */
            b.CollectionName = "AbpUsers";
           b.BsonMap.MapProperty(x => x.MyProperty);
        });
       
    }

what do I need to add property or properties to extend AppUser what methods I need to update ?

Showing 1 to 1 of 1 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06