c# Adapter 获取sql语句

    xiaoxiao2021-12-14  19

    SqlCommand[] _commandCollection; PropertyInfo info = qty_PriceTableAdapter.GetType().GetProperty("CommandCollection", BindingFlags.Instance | BindingFlags.NonPublic); _commandCollection = info.GetValue(qty_PriceTableAdapter, null) as SqlCommand[]; string sql = _commandCollection [0];
    转载请注明原文地址: https://ju.6miu.com/read-964609.html

    最新回复(0)