Forum Xamarin.Android


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

AndroidX.Room Database Annotation, bad bindings?

[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?


  • tokens994tokens994 Member
    edited March 11

    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. is the bug report.
    Sorry for the dodgy DIY links.. my first post on here trying to be helpful!

Sign In or Register to comment.