Skip to content

EFCore SQLite - Android - Error constructor call failed #11027

@Reshiru

Description

@Reshiru

SQLite database not useable in Xamarin.Forms with Android.
On try to initialize new DbContext error will be thrown.
Expected:
-> Generate database and resolve connection / object to the linked configurations

Exception message:
System.InvalidOperationException: A suitable constructor for type 'Microsoft.EntityFrameworkCore.Internal.DiagnosticsLogger`1[Microsoft.EntityFrameworkCore.DbLoggerCategory+Infrastructure]' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor.

Steps to reproduce

Run the given solution

Issue_Droid.zip

Edit:
Constructor call inside MainPage.xaml.cs

Further technical details

EF Core version: (found in project.csproj or packages.config)
Operating system: Windows 10
IDE: Visual Studio 2017 15.5.6

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions