You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Xamarin IOS/Android app which use EntityFreamworkCoreSqlite 5.0.5.
Trying make full linked version. Android is ok, after read this: Issue and add AndroidLinkSkip to Csproj.
But in ios i'm unable to run app with Link All. Work fine in Dont Link and Link Freamwork SDK only. Therefore i think it Linker problem.
No matter that run in Release / Debug / Simulator / RealDevice
When i use the db context for data modification i got exception. like: _context.RemoveRange(_context.poi); or _context.AddRange(newPoi); (_newPoi has correct value and work in android Full link, ios Dont Link and ios Link Freamwork SDK)
Unhandled Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: source
at Microsoft.EntityFrameworkCore.Utilities.Check.NotNull[T] (T value, System.String parameterName) [0x00014] in <60b4caed95534d9e9bba8e623d3661ff>:0
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.Include[TEntity,TProperty] (System.Linq.IQueryable1[T] source, System.Linq.Expressions.Expression1[TDelegate] navigationPropertyPath) [0x00000] in <60b4caed95534d9e9bba8e623d3661ff>:0
at myapp.App.Update (System.Threading.Tasks.Task1[TResult] retval) [0x0035b] in F:\a\myapp\myapp\App.xaml.cs:123
When trying to get data from database return null.
Install app in Dont Link mode. First time create the sqlite db, and seed the it with data. After a lot of restert everything is fine. Image
Change to Full Link mode and run again(whitout delete app and keep sqlite.db file). Context always return null. Image
Change back Dont link mode (whitout delete app and keep sqlite.db file) work again.
I have a Xamarin IOS/Android app which use EntityFreamworkCoreSqlite 5.0.5.
Trying make full linked version. Android is ok, after read this: Issue and add AndroidLinkSkip to Csproj.
But in ios i'm unable to run app with Link All. Work fine in Dont Link and Link Freamwork SDK only. Therefore i think it Linker problem.
No matter that run in Release / Debug / Simulator / RealDevice
When i use the db context for data modification i got exception. like:
_context.RemoveRange(_context.poi);
or_context.AddRange(newPoi);
(_newPoi has correct value and work in android Full link, ios Dont Link and ios Link Freamwork SDK)Exception: (Full)
When trying to get data from database return null.
Install app in Dont Link mode. First time create the sqlite db, and seed the it with data. After a lot of restert everything is fine. Image
Change to Full Link mode and run again(whitout delete app and keep sqlite.db file). Context always return null. Image
Change back Dont link mode (whitout delete app and keep sqlite.db file) work again.
LinkerDescription
Latest VS 2019 community and 2019 Enterprise Preview
Any tipp?
The text was updated successfully, but these errors were encountered: