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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    Hi,

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

    with regards

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.