hanssens / localstorage

LocalStorage for .NET - A simple and lightweight tool for persisting data in dotnet (core) apps.
MIT License
74 stars 17 forks source link

Add possibility to Get all entries of same type from the storage #31

Closed midium closed 4 years ago

midium commented 4 years ago

At the moment there is no way to return for example all the entries of the same type as a list. This would be great in case for example we are persisting a list of classes and we want to get them all back later on to be shown inside the application. Something like: localStorage.GetAll<Animal>() Returning a list or enumerable or actually a dictionary of key/value since that is what we are storing.

Do you have any plan to add this option within the library? In case do you think is something you would consider?

midium commented 4 years ago

Sorry I've just realized that using properly the Query function that is achievable already.