Linq 2 SQL 或 Linq 实体
- 作者: 回眸一声吼
- 来源: 51数据库
- 2022-12-08
问题描述
我正在开始设计一个新的应用程序,我想知道人们对 Linq2SQL 或 Linq2Entities 的看法,以及他们认为更适合快速开发的技术.
I am starting to design a new application and what I am wondering is peoples opinions on Linq2SQL or Linq2Entities and what they feel is the better technology for rapid development.
我也在研究 ADO.net 数据服务.
I am also doing some research into ADO.net data services.
推荐答案
如果您满足以下设计要求,我是 LINQ to SQL 的忠实粉丝:
I'm a big fan of LINQ to SQL if you meet the following design requirements:
- MS SQL Server 作为数据库引擎
- RAD 开发
- 只需要 1 - 1 个类映射
我没有用 Entity Framework 做过很多工作,但据我所知,我所做的是,当从与 LINQ to SQL 使用的相同数据库生成时,它没有那么好的性能.
I've not done a whole lot of work with Entity Framework but from what I know and what I have done is that it doesn't have as-good performance when generated from the same database as LINQ to SQL uses.
性能较低的原因是实体框架的性质,它使用 ADO 而不是您正在使用的数据库服务器的特定提供程序.
The lower performance is due to the nature of Entity Framework, it uses ADO rather than specific providers for the database server you're using.
- C#通过fleck实现wss协议的WebSocket多人Web实时聊天(附源码)
- 团队城市未满足要求:MSBuildTools12.0_x86_Path 存在
- 使用 MSBuild.exe 在发布模式下构建 C# 解决方案
- 当我发布 Web 应用程序时,AfterPublish 脚本不运行
- 构建时 T4 转换的产品仅在下一个构建中使用
- ASP.NET Core Application (.NET Framework) for Windows x64 only error in project.assets.json
- 新的 .csproj 格式 - 如何将整个目录指定为“链接文件"到子目录?
- 如何将条件编译符号(DefineConstants)传递给 msbuild
- MSBuild 支持 Visual Studio 2017 RTM 中的 T4 模板
- NuGet 包还原找不到包,没有源
