cancel
Showing results for 
Search instead for 
Did you mean: 

SAP HANA support for Entity Framework

0 Kudos

Is the ADO.NET provider given by SAP supports Entity framework ?

I am trying to use the same in my visual studio, but entity model wizard gets disappeared after connection page.

Accepted Solutions (0)

Answers (1)

Answers (1)

tsteine
Member
0 Kudos

I've been having this problem as well. As far as I can see, this happens because of the GetManifestToken and CheckVersion methods in the HanaStoreVersionUtil class in the .net provider dll.

It gets the version string and splits it into arrays then performs this code:
if (Convert.ToInt32(strArray[1]) <= 0 && Convert.ToInt32(strArray[2]) < 90) throw new ArgumentException("Server version not supported.");

what this does if you're running on Hana Database 2 is that it gets the version string which would be (in my case):

Version: 2.00.011.00.1493936640

what happens here is that the first check sees if 00 in the version string is <= 0 (which is always true) the second check sees if 011 is < 90 (which is also always true). Since both of these are true, it throws a Server Version not supported exception which means we cannot use the .Net provider at all for Hana Database 2.0 until they fix the version check or update the database version string to 2.01* or 2.00.090*

I can only assume this is left over code from Hana Database 1.0 that was meant to check if the database version was newer than a certain version, that never got fixed for 2.0 with new version strings.