您的位置:首页 > 数据库

c# Adapter 获取sql语句

2016-12-02 15:32 134 查看
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];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  sql c#