Skip to Content
-1

SAP HANA support for Entity Framework

May 30, 2017 at 11:01 AM

328

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Jun 06, 2017 at 04:13 PM
0

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.
Share
10 |10000 characters needed characters left characters exceeded