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

EFCore Provider for New Database #20778

Closed
deokershesh opened this issue Apr 29, 2020 · 4 comments
Closed

EFCore Provider for New Database #20778

deokershesh opened this issue Apr 29, 2020 · 4 comments
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported

Comments

@deokershesh
Copy link

Not sure if this is correct forum, if not, please suggest what would be correct forum to ask this question.
I am looking for EFCore support for new RDBMS(database). This database already support .NET Core 3.1 Provider. What would be best place to start with possible skeleton code to support new database? Could we take https://github.com/dotnet/efcore code and modify https://github.com/dotnet/efcore/tree/master/src/EFCore.SqlServer/Storage/Internal source files to support new Database?

Could we take https://github.com/dotnet/efcore code and modify https://github.com/dotnet/efcore/tree/master/src/EFCore.SqlServer/Storage/Internal source files to support new Database?

@roji
Copy link
Member

roji commented Apr 29, 2020

We unfortunately don't currently have a skeleton provider template you can start from, but you can indeed duplicate an existing provider and start from there. The SQL Server provider is one possibility; you can also look at a provider that's completely outside the repo, like Npgsql.EntityFrameworkCore.PostgreSQL.

We also have a doc page on writing a provider, although it's unfortunately very rudimentary and not up to date. We do plan on providing more docs on this for 5.0. As you run into problems, feel free to open new issues here to ask questions and we'll assist in any way we can.

Out of curiosity, can you let us know which RDBMS you're developing a provider for?

@deokershesh
Copy link
Author

Thanks @roji,
Basically one of the links from "doc page on writing a provider" takes me to https://github.com/dotnet/efcore only. Also it has Npgsql.EntityFrameworkCore.PostgreSQL as you mentioned. However, didn't find how to start building Npgsql.EntityFrameworkCore.PostgreSQL code form github link.

I was looking for EFCore Provider for Informix database and didn't find one, hence thought to make an attempt to create one!

@roji
Copy link
Member

roji commented Apr 29, 2020

See the links on that page to Npgsql, Pomelo MySQL and SQL Server Compact. You should be able to clone these and build them; at the very least for the Npgsql provider, a standard dotnet build should work.

@roji
Copy link
Member

roji commented Apr 29, 2020

Am going to close this as there's nothing actionable here - dotnet/EntityFramework.Docs#681 already tracks improving our docs for provider writers. But don't hesitate to post back here if you have more questions.

@roji roji closed this as completed Apr 29, 2020
@roji roji added closed-no-further-action The issue is closed and no further action is planned. and removed type-enhancement labels Apr 29, 2020
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported
Projects
None yet
Development

No branches or pull requests

3 participants