Im developing plugin in nopCommerce 4.60 and have this entity
public class KmStoresSnapshot : BaseEntity
{
public IEnumerable<StoreInfo>? Data { get; set; }
public uint Version { get; set; }
public DateTime CreatedOnUtc { get; set; } = DateTime.UtcNow;
}
I want to save the Data property to the database as a string, and when fetched to convert it to StoreInfo collection.
Where is the right place to put the mapping code for this?
10x.