Closed Psybax closed 3 years ago
Hi @Psybax
The library is not built to store the entity framework object, it's designed to store the models available in IdentityServer4.Models
namespace.
there are extension methods to convert back from the EF entity to the model, you can search for it.
Hi @Psybax
The library is not built to store the entity framework object, it's designed to store the models available in
IdentityServer4.Models
namespace.there are extension methods to convert back from the EF entity to the model, you can search for it.
Thanks for the answer. Changed to use model and it works.
I have error when calling SetAsync API in RedisCache.cs
On Stackoverflow https://stackoverflow.com/questions/7397207/json-net-error-self-referencing-loop-detected-for-type, it requires to add
when using
JsonConvert.SerializeObject
. Since the JSON convert is wrapped into RedisCache.cs I can not change it. I also tried other ways without changingJsonSerializerSettings
, like addin Start.cs. But it still has the error when running unit test. Do we need to add
ReferenceLoopHandling = ReferenceLoopHandling.Ignore
inJsonSerializerSettings
to solve this problem?