📌  相关文章
📜  c# datareader 已经打开 Visual Studio mysql - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:04.030000             🧑  作者: Mango

代码示例1
// Always, always, always put disposable objects inside of using statements:
using (Connection c = ...)
{
    using (DataReader dr = ...)
    {
        //Work with dr in here.
    }
}
//Now the connection and reader have been closed and disposed.