-
C# 是行提交方式插入、删除、更新数据库记录
C# 是行提交方式插入、删除、更新数据库记录,本实例小程序主要演示了以行提交方式插入数据库记录、以行提交方式修改数据库记录、以行提交方式删除数据库记录、使用带有列值的Update()方法修改记录、使用带有列值的Delete()方法删除记录、使用带有列值的Insert()方法插入记录,对应的各个功能核心代码如下:
private void button2_Click(object sender, EventArgs e)
{//以行提交方式修改数据库记录(首先以添加新数据源方式新增NorthwindDataSet)
NorthwindDataSet.ShippersRow MyRow;
MyRow = this.northwindDataSet.Shippers.FindByShipperID(1);
MyRow.Phone = "13996060872";
this.shippersTableAdapter.Update(this.northwindDataSet.Shippers);
}
private void button4_Click(object sender, EventArgs e)
{//使用带有列值的Update()方法修改记录
NorthwindDataSetTableAdapters.ShippersTableAdapter MyAdapter =
new MyForm.NorthwindDataSetTableAdapters.ShippersTableAdapter();
MyAdapter.Update("Speedy Express", "13036371686", 1, "Speedy Express", "13996060872");
this.shippersTableAdapter.Fill(this.northwindDataSet.Shippers);
}
private void button3_Click(object sender, EventArgs e)
{//以行提交方式删除数据库记录(首先以添加新数据源方式新增NorthwindDataSet)
Northwi
- 2023-02-24 10:00:04下载
- 积分:1
-
Lab3-5-2 墨水屏
说明: The ink screen, as you can see,
- 2020-06-20 07:00:01下载
- 积分:1
-
Simulating-a-channels-in-Matlab
new chnnel simulation
- 2012-05-29 17:42:37下载
- 积分:1
-
C#编写串口程序(详细教程)
C#通信基础,串口通信,详细教程,初学者入门(C# communication base)
- 2017-11-03 15:24:42下载
- 积分:1
-
Speech-Signal-Processing
语音信号处理c语言程序-音高、加窗、MFCC、PLP、等(C programming language speech signal processing- pitch, add window, MFCC, PLP, etc)
- 2015-11-17 21:15:48下载
- 积分:1
-
A plane games c# Programming, source code and full of notes, and they hope to he...
一款飞机游戏的c#编程实现,富有源代码和注释说明,希望对大家有帮助-A plane games c# Programming, source code and full of notes, and they hope to help everyone
- 2022-01-26 07:55:13下载
- 积分:1
-
Aspose.Email for .NET Examples
Aspose.Email for .NET Examples
- 2013-12-22下载
- 积分:1
-
White-Noise
对系统辨识中白噪声信号的加入影响的分析,并进行在线辨识。(Identification of the system by adding white noise analysis of the impact of
)
- 2011-07-09 22:15:47下载
- 积分:1
-
BaseFramework_TC27xB_MulitiCAN
说明: 乾勤TC275开发板,控制器局域网 (MultiCAN+)模块(QIANQIN TC275 DEMO ,Controller Area Network Controller (MultiCAN))
- 2020-06-20 07:00:01下载
- 积分:1
-
手柄DEMO_56
说明: 基于nordic平台,扫描摇杆的ADC转换成对应的按键坐标值(ADC of Scanning Rocker Converts to Corresponding Key Coordinate Value)
- 2020-06-18 21:00:02下载
- 积分:1