We are developing a mobile application using Xamarin.Forms, which is supported by a web application using ASP.NET Core. We are loading various models from databases in both web and mobile applications, and we recently switched to using EntityFramework Core (we will call EFCore) in a web application.
We are currently reviewing the transition to a mobile application in order to also use EFCore, so that we can share a lot of code between applications, but have problems with EFCore on iOS. It seems to be able to compile and run, and can load simple models, but it does not load types with a null value, which are used to indicate additional relationships between models. This person has an EFCore that runs on iOS and provides a project for their code. I myself pulled and started the project to check whether it works, but after adding a null relation to its simple model, it was subsequently not possible to load and create an element with this error:
System. See https://developer.xamarin.com/guides/ios/advanced_topics/limitations/ for more details .
This error does not occur when running on the simulator only on the device.
My question is, has anyone had success with getting Nullables working with EFCore on Xamarin iOS?
Thanks a lot, Will.
PS We can change the version of EFCore / Xamarin.iOS / Mono to solve the problem.
source
share