Giorgi / DuckDB.NET

Bindings and ADO.NET Provider for DuckDB
https://duckdb.net
MIT License
343 stars 62 forks source link

DbProviderFactories.GetFactory fails #67

Closed ulissescappato closed 1 year ago

ulissescappato commented 1 year ago

Hi!

I get the error below when I try to run:


Imports System.Data.Common

DbProviderFactories.GetFactory("DuckDB.NET.Data")

Error: System.Data.Entity.Core.ProviderIncompatibleException: 'A null was returned after calling the 'get_ProviderFactory' method on a store provider instance of type 'DuckDB.NET.Data.DuckDBConnection'. The store provider might not be functioning correctly.'

I'm trying to use the Entity Framework.

Thanks! Ulisses.

Giorgi commented 1 year ago

DbProviderFactory Api isn't supported at the time. If you need it, consider sending a PR or supporting the project.

bnuzhouwei commented 1 year ago

DbProviderFactory is important for database abstractions, I need it so that i can change store among databases, especilly between clickhouse and duckdb.

Can be implement it by ourself?

Giorgi commented 1 year ago

@bnuzhouwei I can give it a try if there are enough Sponsors for the project

ulissescappato commented 1 year ago

@bnuzhouwei, can we support the project together? I also need this feature. Thanks!

Seddryck commented 1 year ago

I also need it, will give it a try.

Giorgi commented 1 year ago

Thanks @Seddryck