2

How do i connect to a Postgresql database using .NET C# Core CLR?

I keep finding references to EF7 and SQL Server, but nothing on Postgresql.

2
  • 1
    What about Npgsql? Commented Jul 24, 2015 at 14:53
  • @xtnd8 Depends on System.Data which is not available Commented Jul 24, 2015 at 15:02

1 Answer 1

1

Npgsql does have a branch that works with the CoreCLR, however it is currently in alpha/unstable mode since .Net Core isn't exactly stable itself at the moment. But in case you missed the announcement, like I did, Npgsql now works with Entity Framework 7. Information on the Entity Framework 7 provider can be found here.

Sign up to request clarification or add additional context in comments.

2 Comments

Both links are dead.
Yes but so is Entity Framework 7, since it's now Entity Framework Core. But updated link: npgsql.org/efcore/index.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.