摘要:
Console.WriteLine("It's Null");elseConsole.WriteLine("It's not Null");//赋予空值rowCustomer["Phone"] = DBNull.Value;④、删除DataRowDataRow rowCustomer;rowCustomer = ds.Tables["Customers"].Rows.Find("ALFKI");rowCustomer.Delete();⑤、清除DataRowDataRow row 阅读全文
摘要:
1、创建DataSet对象:DataSet ds = new DataSet("DataSetName");2、查看调用SqlDataAdapter.Fill创建的结构 da.Fill(ds,"Orders"); DataTable tbl = ds.Table[0]; foreach(DataColumn col in tbl.Columns) Console.WriteLine(col.ColumnName);3、查看SqlDataAdapter返回的数据①、DataRow对象 DataTable tbl = ds.Table[0]; DataRow 阅读全文