阅读背景:

C#audit覆盖SaveChanges()方法。如何从表中查找实体的外键及其值

来源:互联网 

I m overriding the SaveChange() method. What i want is that to log all changes made to an entity to database in simple text like "abc updated Name john to doe, ..." etc I have achieved the functionality but when there is a foreign key in an entity going to update like country_Id which points out the table Country it generates text like "abc updated Country_Id 1 to 3, ..." thats what I do not want it should be like this "abc updated Country Canada to Australia, ..."I m overriding the SaveChange() method. What i




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: