Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] PersistenceFeatureBase is depended on SqlLite #6254

Open
CCRalfvandenBurg opened this issue Dec 31, 2024 · 2 comments
Open

[BUG] PersistenceFeatureBase is depended on SqlLite #6254

CCRalfvandenBurg opened this issue Dec 31, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@CCRalfvandenBurg
Copy link

Description

When defining custom Persistence feature, and using sqlserver, There is an error:
`Skip = "Fix efcore setup first ( System.AggregateException : One or more errors occurred. (Services for database providers 'Microsoft.EntityFrameworkCore.SqlServer', 'Microsoft.EntityFrameworkCore.Sqlite' have been registered in the service provider. Only a single database provider can be registered in a service provider. If possible, ensure that Entity Framework is managing its service provider by removing the call to 'UseInternalServiceProvider'. Otherwise, consider conditionally registering the database provider, or maintaining one service provider per database provider.))"

@CCRalfvandenBurg CCRalfvandenBurg added the bug Something isn't working label Dec 31, 2024
@sfmskywalker
Copy link
Member

I haven't seen this before, even when using the SQL Server provider.
The reason the base persistence feature class depends on Sqlite is for convenience for new users, but if it causes issues we should remove that. But it would be good to try and get this issue reproduced first so we can confirm the fix.

Any chance you could produce a simple project that reproduces the issue?

@CCRalfvandenBurg
Copy link
Author

Yes, indeed i was planning to create an example project. We "fixed" it by removing the DependOnAttribute in our custom feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants