通过建立SqlCommandBuilder来自动生成的,要想查看代码,如下:
SqlCommandBuilder thisbuilder = new SqlCommandBuilder(thisadapter);
Console.WriteLine("输出thisadapter的显示命令:");
Console ...
谢谢你的提示,但是有个问题,SqlCommandBuilder thisbuilder = new SqlCommandBuilder(thisadapter)这句thisadapter是SqlDataAdapter类型,而系统自动建立的是TableAdapter控件,怎样才能将TableAdapter控件类型转成SqlDataAdapter类型?