Closed mookid8000 closed 4 years ago
Instead of a method we should have a read only property.
See the answers to this stack overflow question https://stackoverflow.com/questions/16829732/to-use-a-read-only-property-or-a-method
Also please target the new incoming branch I expect you wil need a new PR.
Edit: Github won't let me repon this PR because I deleted the master branch
Oh yeah, sure thing 🙂 I added it as a method because I thought it matched GetUnderlyingCollection
of LiteCollectionAsync
nicely, but if you prefer a read-only property I can definitely change it into that.
I should probably change that too. Just an old habit from when I was a C++ programmer
This PR adds a
GetUnderlyingDatabase
method toLiteDatabaseAsync
, so that one can retrieve the wrappedILiteDatabase
.This is useful, because
ILiteDatabase
exposes various operations not available otherwise – e.g. the ability to rebuild the database with another collation:this way providing a way to make the database's string comparisons case sensitive.