Som*_*ode 4 .net c# sql ado.net
我知道这是非常愚蠢的事情.但我并不像你们所有人那样天才.如果我有一个数据集如下: -
adapter.fill(ds,"Login");
Run Code Online (Sandbox Code Playgroud)
现在,在数据集中创建的表是"登录".现在我可以在这个表上发出一个sql命令
sqlcommand cmd = new sqlcommand("select * from Login");
Run Code Online (Sandbox Code Playgroud)
你可以过滤数据表,例如
ds.Tables["Login"].Select("ID=1 AND ID2=3"); // sample expression
Run Code Online (Sandbox Code Playgroud)
更多关于此链接