How to provide IBM Data Server Connection Information via IBM Data Server provider for EF Core 1.1.1
Archanaibm 2700053MB4 Visits (10524)
How to provide IBM Data Server Connection Information via IBM Data Server provider for EF Core 1.1.1:
IBM Entity Framework Core Provider mandates the user to provide server platform type, and version in addition to the connection string while configuring DbContext. To pass server information, User can use SetServerInfo(..) method which belongs to the namespace IBM.
To connect to a DB2 for zOS Data Server, it would look like:
The second argument (server version) of SetServerInfo(...) method is optional. If it is not specified, the latest supported version for the respective Database server will be taken as the default. Please refer the following table for detailed information about platform type and server version for the currently supported IBM Data Servers:
Note: In the above table, Highlighted Server Version is taken as default, if not specified by user.