NHibernate 可以使用内部类型吗?

发布于 2024-09-25 02:37:03 字数 162 浏览 3 评论 0原文

我是一个 NHibernate 菜鸟,我想知道 NHibernate 是否可以使用内部类型。我有一个包含大量内部实体的项目,我想在项目中使用 NHibernate 来访问我的数据存储。如果我将映射文件放在同一个程序集中(或者这是否有必要?),NHibernate 是否可以与我的内部实体一起工作?还是需要公开?

I'm a little bit of an NHibernate noobie, and I was wondering if NHibernate can work with internal types. I have a project with a bunch of internal entities, and I would like to use NHibernate within the project to access my data store. If I put the mapping files in the same assembly (or is this even necessary?), will NHibernate work with my internal entities? Or do they need to be declare public?

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

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

发布评论

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

评论(1

大姐,你呐 2024-10-02 02:37:03

可以。映射文件位置不相关。

It can. The mapping files location is not relevant.

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