Converting Object to HashEntry in StackExchange.Redis

I want to make a HashSet in redis use StackExchange.Redis, but in db.HashSet () I need to pass the HashEntry type, how can I convert the object to HashEntry, I know reflection, is there any quick code for the conversion object?

+3


source to share


1 answer


Currently the library does not contain any layer for mapping hash to / from an object and its associated properties. If you want that, you have to do it separately, perhaps using something like reflection, but perhaps using a helper tool like FastMember or HyperDescriptor.



+3


source







All Articles