I am using Entity Framework Core with SQLite for the first time on Xamarin Forms.
TaskScheduler.UnobservedTaskException, I noticed the following exception, each time I do an operation on EF on the iOS Platform.
System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Reflection.Emit.DynamicMethod..ctor (System.String name, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes, System.Type owner, System.Boolean skipVisibility) [0x00006] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System.Reflection.Emit/DynamicMethod.notsupported.cs:74 at Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder.BuildTypeNoCache (Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite callSite) [0x00038] in <29788903d3cf48c4a1368d8b368c6521>:0 at Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder.<.ctor>b__12_0 (Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCacheKey key, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite cs) [0x00000] in <29788903d3cf48c4a1368d8b368c6521>:0 at (wrapper delegate-invoke)
On the Android, it is working fine, But on the iOS I am getting above exception. I am using latest version of Xamarin.forms and EntityFramework.Sqlite packages. Any help would be much appreciated.