创建 DAL 对象的建议

发布于 2024-08-23 06:34:32 字数 151 浏览 5 评论 0原文

您能推荐一个简单但有用的 DAL 对象创建器吗?我想要像 LINQ 那样创建和更新对象的东西。它应该是在 C# 中,如果它将对象的属性和数据访问方法拆分为部分类,那就更好了。

我们以前使用过 CSLA,但我希望我们的下一个项目能使用更简单的东西。

提前致谢

Can you recommend a DAL object creator that is simple yet useful. I want something that creates and updates object the way LINQ does. It should be in c# and much better if it splits object's properties and data access methods in partial classes.

We've used CSLA before but I want something more simplier for our next project.

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

盛装女皇 2024-08-30 06:34:32

只是一个谦虚的推荐,因为有很多很棒的产品 - 我们已经在我们的商店使用 EntitySpaces(一种 ORM)几年了,并且喜欢它。

Just a humble recommendation as there are plenty of great products out there - we have been using EntitySpaces (an ORM) for a couple of years at our shop and like it.

友谊不毕业 2024-08-30 06:34:32

如果您正在寻找 ORM,请参阅此处:

NHibernate,实体框架,活动记录或 linq2sql

您是否只想使用原始 ADO.NET 或者数据集?如果是这样,您是否想要一个代码生成器在没有成熟的 ORM 的情况下为您生成数据层?

如果你想使用Linq(而不是Linq-To-Sql),那么此时你需要一个ORM。

CSLA 并不是真正的 ORM,从数据层的角度来看并没有真正做太多事情。它更多的是一个业务层工具。

If you are looking for an ORM, see here:

NHibernate, Entity Framework, active records or linq2sql

Are you just looking to use raw ADO.NET and also maybe datasets? If so, do you want a code generator to generate your data layer for you without a full blown ORM?

If you want to use Linq (not Linq-To-Sql), then you need an ORM at this point.

CSLA is not really an ORM and doesn't really do much from a data layer perspective. It is more of a business layer tool.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文