在调用CLPPlus期间,可以指定一个连接字符串,以便在CLPPlus会话中建立数据库连接,如以下示例所示。
A connection string can be specified during CLPPlus invocation in order to establish the database connection in CLPPlus session as shown in the example below.
在本章的前面,你看到,你可以通过在配置文件中加入与你的上下文的名称相同的连接字符串指定一个数据库。
Earlier in this chapter, you saw that you are able to specify a database to use in the configuration file by adding a connection string with the same name as your context.
如果没有找到有具体指定名称的连接字符串,就会抛出一个异常。
If no connection string is found with the specified name, an exception is thrown.
应用推荐