GetTextBlobChild not resolving type correctly
Hi
I recently upgraded to the latest version (v1.1.0, commit 09699dc) of SQLite-Net Extensions, and now the following issue is occurring (I am building from source because I am using the MvvmCross version):
GetTextBlobChild() method of the TextBlobOperations class is resolving my object's type as System.Object and not its actual type, and is therefore unable to retrieve the text property for TextBlob. The line causing the issue is:
var type = typeof(T);
this is easily fixed by changing the line to:
var type = element.GetType();
Since I am building from source, I have fixed this for now in my copy - could you please propagate this if you agree with the fix?
Btw - any chance you will be releasing the MvvmCross version as a NuGet package?
Thanks for this library - it is really helping me a lot!
Comments (4)
-
-
- changed status to resolved
Solved in v1.1.1
-
@mrtnkrstn I just deployed the MvvmCross version of the library to NuGet: https://www.nuget.org/packages/SQLiteNetExtensions-MvvmCross/
Anything else let me know.
-
reporter @redent Thanks so much! Have incorporated into our project. Really appreciate it!
- Log in to comment
Thanks for your feedback. I recently removed unused generics and all the
typeof
calls were replaced withGetType
, but it seems that this one slipped in. It's fixed now.I'll try to prepare a NuGet package with MvvmCross version, I'm facing some problems with multi-project directories and NuGet with the latest Xamarin Studio, but shouldn't take too much.