AndroidX.Room Database Annotation, bad bindings? RRS feed

  • Question

  • User392879 posted

    [Database(Entities = new Java.Lang.Class[] { Java.Lang.Class.FromType(typeof(SomeClass)) })]

    Results in 'Entities is not a valid named attribute argument because it is not a valid attribute parameter type' Which I understand, because this is the related part:

    public Java.Lang.Class[] Entities { get; set; }

    How am I supposed to use Room though, if the bindings themselves are incorrect?

    Wednesday, February 19, 2020 1:35 PM

All replies

  • User399880 posted

    Ive actually asked the same question on stack overflow question 66536851 just in case something pops up there. It looks like a bug with the binding. github.com/xamarin/AndroidX/issues/77 is the bug report. Sorry for the dodgy DIY links.. my first post on here trying to be helpful!

    Thursday, March 11, 2021 6:29 PM