Starts in:
1 DAY
18 HRS
43 MIN
4 SEC
Starts in:
1 D
18 H
43 M
4 S
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 20, 2024, 13:06