【发布时间】:2010-04-29 08:11:01
【问题描述】:
大家好,你们如何在数据访问层下的 SubSonic 上的所有对象/类上实现审计跟踪?
如果我想要的是,所有对象的所有更改都将记录在单个表/对象上。
public class AuditTrail
{
public int Id { get; set; }
public string SourceObjectName { get; set; }
public int RowPK { get; set; } // Id of the SourceObject
public string ChangeType {get; set;} // value such as "Add", "Update", "Delete"
public string RowCapture { get; set; } // Id="6" UserId="xxx3" SurName="NoBodyx" FirstName="no3" MiddleName="B." Email="x@x.x3" CreatedDate="8/6/2009 1:57:58 PM" CreatedBy="ca3" UpdatedDate="8/7/2009 5:58:37 AM" UpdatedBy="qqq" Name="no3 B. NoBodyx"
public CreatedDate {get; set;}
}
【问题讨论】: