延迟抓取的另一个问题就是在获取到请求的数据前要一直打开数据库连接,否则应用就会抛出一个延迟加载异常。
Another issue with lazy fetching is that the database connection has to be retained until all the required data is fetched else the application will throw a lazy loading exception.
这个函数尝试关闭以前打开的数据库连接。
This function attempts to close the previously opened database connection.
这些方法连接到或打开必需的数据源对象,并检索所需的数据。
These methods connect to or open the necessary data source object and retrieve the required data.
应用推荐