从 ModifiedMemberInfo 获取主键
在我正在开发的 ASP.NET/C# 项目中,所有更改(插入/更新/删除)都需要与主键一起审核到单独的表中。然而,有一个障碍我似乎无法克服。
为了更新,我捕获 ModifiedMemberInfo 并从中创建一个字符串进行审核 - 下面是一个示例:
foreach (ModifiedMemberInfo mmi in dc.Jobs.GetModifiedMembers((Job)Table))
{
ActionToAudit += LINQChangeActionDetails(mmi);
AuditDesc = "Modified Job details";
}
问题是,我也需要审核该作业主键 - 但如何访问它?
in an ASP.NET/C# project I am developing, all changes (inserts/updates/deletes) are required to be auditted into a seperate table, along with the primary key. There is one hurdle which I can't seem to overcome however.
For the updating, I am capturing the ModifiedMemberInfo and making a string to audit out of that - an example is below:
foreach (ModifiedMemberInfo mmi in dc.Jobs.GetModifiedMembers((Job)Table))
{
ActionToAudit += LINQChangeActionDetails(mmi);
AuditDesc = "Modified Job details";
}
Problem is, I need to audit that jobs primary key too - but how do I access it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最终创建了一个包含相关列描述的字典
Ended up creating a dictionary containing the relevant column descriptions