6 The DB2 Entity Framework Data Provider : Configuring Connection Strings

Configuring Connection Strings
The data provider uses a connection string to provide information needed to connect to a specific database server. The connection information is defined by connection string options.
You can define connection string options directly in a connection string or set values in the Advanced Properties dialog box in Visual Studio (see “Defining Connection String Values in Server Explorer”).
You can specify an existing connection in the Entity Framework Wizard, or can define a new connection. The ADO.NET Entity Framework uses information contained in connection strings to connect to the underlying ADO.NET data provider that supports the Entity Framework. The connection strings also contain information about the required model and mapping files. The data provider uses the connection string when accessing model and mapping metadata, and connecting to the data source.
NOTES:
Inadequate permission to create packages on the database server. Packages must be created once on each DB2 server that the DataDirect Connect for ADO.NET DB2 provider will connect to. The provider detected that the packages do not exist on this server and tried to create them, but could not due to the current user not having BINDADD permission on the DB2 server.
Constructing a Connection String
“DB2 Data Provider Connection String Options” lists the connection string options supported by the DB2 Entity Framework data provider and describes each option. The options have the form:
option=value
Each connection string option value pair is separated by a semicolon. For example, a user with the BINDADD permissions could use the following connection string to make the initial connection:
"Host=10.30.14.109;Port=446;User ID=roger;Password=newm4n;Database=NCANSV5; Collection=ADOVS1"
See “Using Connection Strings” for guidelines for the syntax and use of connection string options.
Default Values for Connection String Options
The connection string options are described in “DB2 Data Provider Connection String Options”. Table 6-1 lists the supported connection string options and their default values.
0x7F or All except IgnoreUserPermissions
Changes in Default Values for Connection String Options
Most default values of the connection string options used by the DB2 ADO.NET Entity Framework data provider are the same as those used by the DB2 ADO.NET data provider (see “DB2 Data Provider Connection String Options” for more information). Table 6-2 lists the connection string options that have a different behavior when used with an ADO.NET Entity Framework application.