清单1将展示如何使用“abc”作为用户ID和口令,建立与名为“SAMPLEDB”的数据库的连接。
Listing 1 shows how to establish a connection to a database called "SAMPLEDB" using "ABC" as both the user id and password.
作为替代解决方案,我建立一个看起来很像清单2的调用处理程序,而验证代码直接在调用处理程序里运行。
For an alternative solution, I could have created an invocation handler that looks more like the one from Listing 2, where the validation code is run directly in the invocation handler.
应用推荐