数据库,这是最好的使用方法. [英] Database, which the best method for use.

查看:97
本文介绍了数据库,这是最好的使用方法.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我是用C#进行初学者编程的人,我想知道我可以使用哪种最佳形式将数据库连接到系统.

谢谢

Hi guys, i''m beginner programming on c#, i wanted know which the best form i may use for connect my database with my system.

Thanks

推荐答案

如果您是初学者,我将从强类型数据集入手,并使用dataadapters来获取数据并执行更新.
下一步可能是自己使用sql命令来获取数据并执行更新.
更高级的是使用实体框架.
这个问题有点笼统,所以我的回答也有点开放.如果您有更具体的问题,我会很乐意回答.
If you are a beginner I would start with strong typed datasets and use dataadapters to fetch the data and perform the updates.
Next step might be to use an sql command yourself to fetch data and perform updates.
Going more advanced is using an entity framework.
The question is a bit generic, so my answer is a bit open too. If you have more specific questions I''ll gladly answer.


有两个连接和断开连接的环境.
已连接:当有1-1(服务器-客户端)时,它非常有用..
断开连接:可能在clent-1/许多服务器中提供帮助.

如果已连接,则可以直接执行命令对象.
但如果断开连接,则需要使用临时的Dataset对象.

okey.
这些链接将对您有所帮助.
使用C#连接数据库

已连接和已断开连接的环境

已连接和已断开连接的体系结构之间的差异
There are two environment Connected and disconnected.
Connected: when there is 1-1 (server-Client) its very helpful..
Disconnected : When may clent-1/many server its helpful.

in case case of connected you can directly execute the Command Object.
but in case of disconnected you need to take help of temporary Dataset object.

okey.
these link will be helpful for you.
Connect Database with C#

connected and disconnected Environment

difference between Connected and Disconnected Architecture


这篇关于数据库,这是最好的使用方法.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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