NHibernate 中的触发器

发布于 2024-09-02 03:56:06 字数 188 浏览 2 评论 0原文

我想知道 NHibernate 中是否有类似触发器(数据库)的东西,我可以为每个实体使用?

我想为每条记录创建历史记录,并且通过触发器,我可以比较每个属性的旧值和新值并生成历史记录寄存器。

我听说过 NHibernate 中的审计,但它适用于所有实体,如果没有其他方法......我如何为每个实体分离一个块?

谢谢

I'd like to know if is there something like a Trigger (of databases) in NHibernate that I can use per entity ?

I'd like to make a history of each record, and with triggers I can compare the old value and new value of each property and generate a register of history.

I've heard about Audit in NHibernate, but it's for all entities, if there isn't another way... how Can I separete a block per entity ?

Thanks

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文