0
kwanp created
Hi My Project run on ASP.NET CORE & Angular How can i config my ASP.NET Core to connect from SQL Server and PostgreSQL because i have to get some data out from other server running PostgreSQL
Thank you
3 Answer(s)
-
0
Hi @kwanp
You can directly use https://github.com/npgsql/efcore.pg to connect to PostgreSQL. I assume you want AspNet Zero to work with SQL Server but get extra data from PostgreSQL.
-
2
@kwanp - if you need two database contexts (which is what I think you're asking) you can follow the instructions here: how to use multiple databases in aspnet zero Hope that helps.
-
0
Thank you