关于在ado.net项目中附加数据库 [英] about attaching database in ado.net project

查看:74
本文介绍了关于在ado.net项目中附加数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是Mohit k.谁能告诉我如何在ado.net项目中附加数据库.
我已经在sql server ..中创建了数据库和数据库中的表,并在Ado.net中创建了表格.但是我无法将数据库附加到我的项目中.在这里,我想通过我的项目更新数据库中的数据.即通过绑定导航器添加数据并删除数据等.并为我提供解决方案

This is Mohit k. Can anyone tell me how to attach database in ado.net project.
I have already created database and tables inside database in sql server..and have created forms in Ado.net. But i am unable to attach the database to my project..here I want to update the data in my database through my project..ie adding the data and delete the data etc through binding navigator....so pls help me..and provide me the solution

推荐答案

我认为本文将为您提供使用ADO.NET执行CRUD操作的所有必需信息和示例代码.
了解ADO.NET的初学者教程 [ ^ ]
I think this article will give you all the required information and sample code to perform the CRUD operations using ADO.NET

A Beginner''s Tutorial for Understanding ADO.NET[^]


查看Devfusion文章此处 [ ^ ]讨论了ADO.NET和更多详细信息,例如,如果需要,还可以执行命令.
Check out the Devfusion article here[^] it discusses the ADO.NET and more details like executing commands too if you want.


您可以参考此代码项目文章

通过分页在DataGridView中添加,编辑和删除
You can refer this codeproject article

Add, Edit, and Delete in DataGridView with Paging


这篇关于关于在ado.net项目中附加数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆