Breeze.js审核日志 [英] Breeze.js audit log

查看:55
本文介绍了Breeze.js审核日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在客户端使用breeze.js进行实体框架上的数据访问.

We are using breeze.js on client side for data access layer over entity framework.

我们需要维护服务器上所有数据更改的审核日志.

We need to maintain the audit log for all the data changes on server.

有人可以建议这样做的最好方法是什么吗?

Can somebody please advise what could be the best way to do that?

推荐答案

我想到的两个选择是

1)服务器端触发器

2)使用Breeze beforeSaveEntities 机制拦截Breeze saveChanges 调用,并直接在服务器上的代码中添加审核记录.

2) Use the Breeze beforeSaveEntities mechanism to intercept the Breeze saveChanges call and add audit records directly in code on the server.

这篇关于Breeze.js审核日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆