I'm developing a .net core application in which I want to access data from external SAP Hana Databases.
Since I only want to execute Queries on the SAP Hana Database I am not able to have a referencing model in my .net core application. Since the official SAP Hana Driver is only available for windows, I tried with linq2db.
I tried these answers and tried some things myselfs.
I'm either getting
LinqToDB.LinqToDBException: Configuration 'Server=[IP];databaseName=HXE;UserID=SYSTEM;Password=[PASSWORD]' is not defined.
or
System.IO.FileNotFoundException: Could not load file or assembly 'Sap.Data.Hana, Culture=neutral, PublicKeyToken=null'.
For development purposes I've set up the SAP Hana Express VM as described here. The installation is successful and I can interact with my Hana DB through DBeaver as proposed here.
I did not find adequate informations in the linq2db documentation as well.
I would be extremely happy if someone could post an example on how to achieve a simple Query Call to an external SAP Hana Database without mapping tables to classes. If that's not possible, what would you propose as an alternative?