Open Closed

I want to map data to Entity but the base properties are not getting mapped. Eg. Id, CreationTime etc #5532


User avatar
0
bhasinp created
  • ABP Framework version: v7.2.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I cached the data in Redis, The data which I cached is Entity. Example Job (Not JobDto) When I read data from Redis, All the data get mapped except the base properties (Id, CreationTime, CreatorId, LastModificationTime, LastModifierId)

The cause which I found is these Properties are having protected set;

public virtual TKey Id { get; protected set; }

Can you help me out in this, how can I map the data so that I can get the Entity Again from Cache.

Thanks


1 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi,

    please refer to this document https://docs.abp.io/en/abp/latest/Application-Services#book-entity .

    with regards

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11