C#数据库交互介绍 [英] Introduction to database interaction with C#

查看:19
本文介绍了C#数据库交互介绍的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,在我的编程生涯(两年)中,我没有太多的数据库经验,但我现在工作的公司在他们的产品中广泛使用数据库,我感觉落后了.

Up to now in my programming career (two years) I have not had much database experience, but the company where I now work uses databases extensively for their product, and I feel behind the curve.

所以我想知道如何最好地开始学习与 C# 的数据库交互.我已经阅读了 LINQ-to-SQL 和 ADO.net.这些是值得研究的正确技术吗?

So I would like to know how best to start learning database interaction with C#. I've read about LINQ-to-SQL and ADO.net. Are these the right technologies to look into?

我从哪里开始?

感谢所有回复.有很多好的 - 我很难选择一个作为那个"答案.这对我很有帮助!

Thanks for all the responses. There were many good ones - I had a hard time choosing one as "the" answer. This helps me greatly!

推荐答案

我建议您花时间学习 Microsoft SQL Server 本身,Data Access Application Block 来自 <强>企业库和ADO.NET实体框架.

I would suggest investing your time in learning Microsoft SQL Server itself, Data Access Application Block from Enterprise Library and ADO.NET Entity Framework.

学习 SQL Server 的入口点在这里 -> SQL Server Developer中心
学习 ADO.NET 的入口点在这里 -> 学习 ADO.NET 在 MSDN

Entry point for learning SQL Server is here -> SQL Server Developer Center
Entry point for learning ADO.NET is here -> Learning ADO.NET at MSDN

首先,为了更好地理解 ADO.NET 是什么,请查看以下链接:

First of all, in order to gain a good understanding of what ADO.NET is, check the links below:

  • ADO.NET at Wikipedia
  • ADO.NET Entity Framework at Wikipedia

了解如何在不使用任何框架和 ORM 工具的情况下,使用 C# 将直接查询写入 SQL Server,然后继续学习 ADO.NET 家族中更高级的技术.

Learn how to write direct queries in C# to SQL Server without using any frameworks and ORM tools, then proceed to learning more advanced technologies in ADO.NET family.

另见:

  • Data Access Application Block at MSDN
  • The ADO.NET Entity Framework Overview at MSDN
  • Learn ADO.NET Entity Framework ("How Do I" videos and more)
  • Videos, Screencasts, Tutorials at ASP.NET
  • Microsoft SQL Server 2008: ADO.NET Entity Framework

您可能还想下载LINQPad,这是完美的游戏工具使用 LINQ.

You may also want to download LINQPad, which is perfect tool for playing with LINQ.

另外,我建议订阅 ADO.NET 相关的RSS 提要:

Also I suggest subscribing to ADO.NET related RSS feeds:

  • ADO.NET Team Blog at MSDN

还可以在 CodePlex.com 上查看现有的开源项目,这些项目使用这些技术并挖掘其源代码.

Also check existing open source projects at CodePlex.com which use these technologies and digg into their source codes.

关于这个主题的好书:

  • Microsoft SQL Server 2008 T-SQL Fundamentals by Itzik Ben-gan (Oct, 2008)
  • Programming Entity Framework by Julia Lerman (Feb, 2009)
  • Murach's ADO.NET 3.5, LINQ, and the Entity Framework by Anne Boehm (Mar, 2009)

这篇关于C#数据库交互介绍的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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