-1

I'm starting to learn ASP.NET (Razor, .NET Framework 4.5), and now am attempting to figure out how to use SQL Server in ASP.NET (I'm used to MySQL in PHP, but from what I've seen SQL Server is more popular/works better in ASP.NET). Looking around, there seem to be a lot of ways to do this, some of the ways I've seen include:

  • ADO.NET
  • OleDb
  • LINQ to SQL

LINQ to SQL would be my favorite choice, since I personally love using LINQ in C#, but the documentation I came across looks like it's for .NET Framework 3.5 (though it may just be outdated documentation, or I could be reading it wrong), and I'm not so sure about having an extra layer/bottleneck for speed considerations. What's the most-used way to do this, and where is the best documentation?

4

2 に答える 2

1

LINQtoSQLは基本的に放棄されました。より良いバージョンについては、EntityFrameworkを使用してください。

http://www.redmond-recap.com/2012/08/27/entity-framework-a-sorry-history-new-release-5-0-and-future-openness/を参照してください

于 2013-01-06T07:03:58.853 に答える
0

Personally the best choice would be Entity Framework

于 2013-01-06T06:52:46.440 に答える