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

How can I use this with a custom IDatabaseCreator? #619

Open
Bouke opened this issue Feb 26, 2025 · 1 comment
Open

How can I use this with a custom IDatabaseCreator? #619

Bouke opened this issue Feb 26, 2025 · 1 comment
Assignees

Comments

@Bouke
Copy link

Bouke commented Feb 26, 2025

I'm trying to use a custom IDatabaseCreator, but this project (v3.103.3) doesn't like that. It seems to be using the defining assembly of the IDatabaseCreator against a hard-coded list of assembly names to determine which provider is being used. I don't this is the right way to determine the provider, as is now evident from the error I'm getting:

System.Exception: The provider is not supported yet: 'MyProject.Assembly.Name. If you believe it's a mistake, please report this message to our support team: [email protected] , v=3.103.3.0
at Z.EntityFramework.Extensions.BatchDelete.CreateCommand(IQueryable query, IEntityType entity)
at Z.EntityFramework.Extensions.BatchDelete.Execute[T](IQueryable1 query) at BatchDeleteExtensions.DeleteFromQuery[T](IQueryable1 query, Action`1 batchDeleteBuilder)

The custom IDatabaseCreator is configured like this:

services.Replace(new ServiceDescriptor(typeof(IRelationalDatabaseCreator), typeof(MyDatabaseCreator), ServiceLifetime.Scoped));
@JonathanMagnan JonathanMagnan self-assigned this Feb 26, 2025
@JonathanMagnan
Copy link
Member

Hello @Bouke ,

Do you think you could create a runnable project with the issue? It doesn’t need to be your project, just a new solution with the minimum code to reproduce the issue.

We currently do not support IDatabaseCreator but we could try if you provide a project that use it (We just want to ensure we work on a solution that will work for your project).

Best Regards,

Jon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants