看到net 组dao层的一个闭包写法

using (SqlConnection cn = new SqlConnection(connectionString)) {
cn.Open();

//call the overload that takes a connection in place of the connection string
				return ExecuteDataset(cn, commandType, commandText, commandParameters);
}

你可能感兴趣的:(java,DAO,.net)