on 2020 Dec 08 1:31 PM
Has anyone written a ASP.NET Core Web API targeting SQL Anywhere? I suspect this is problematic because the ConfigureServices method in the Startup class needs to set up a DbContext, which is an Entity Framework Core object, and SQL Anywhere does not have an Entity Framework Core provider. I don't see a generic ODBC EF Core provider.
Does anyone have success using System.Data.Odbc instead of Entity Framework Core in an ASP.NET Core Web API?
I would really enjoy seeing a "Startup.cs" file from such a .NET project.
Any guidance on how to proceed would be appreciated.
Request clarification before answering.
For .Net Core you can not use Entity Framework at all with SQL Anywhere. You can only use a plain ODBC connection.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, again. Can you suggest an alternative with "plain ODBC"? Is it at all possible to create a ASP.NET Core Web API that uses "plain ODBC" to work with a SQL Anywhere database? I know we can do this using Appeon frameworks, and we are doing so, but I'm interested to know whether there is a "pure Microsoft" approach.
User | Count |
---|---|
82 | |
29 | |
9 | |
8 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.