Hi @mc ,
Thanks for reaching out.
EF Core is a .NET library and is designed to be used with .NET languages like C#. A classic Win32 application written in C++ does not run on .NET, so EF Core can’t be used directly in that environment, even on x64 Windows.
There are technically some indirect and advanced ways to make it work (for example, creating a separate C#/.NET component that uses EF Core and calling it from C++ via interop), but this adds a lot of complexity and is usually not recommended for typical Win32 applications.
If you’re building a C++ Win32 app, a more practical approach is to use database libraries that are intended for C++, such as SQLite, ODBC, or native client libraries for SQL Server, MySQL, or PostgreSQL. These integrate much more naturally with C++ and Win32.
If EF Core is a strong requirement, you may want to consider building the application (or at least the data-access layer) as a .NET application instead of a pure C++ Win32 app.
Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.