How to record/audit changes for Insert/Add C# EF4
问题 Is there a non-complex way of auditing Entity Changes for insert/add? I use the code below to record Entity changes for Edit/Update var context = new DBEntities(connection()); try { BPCategory Bp = context.BPCategories.First(e => e.id == id); Bp.Category = Category; Bp.PercentShare = Percent; Bp.BPCategory1 = BPCategory; Bp.Code = Code; Bp.Status = Inactive; var objState = context.ObjectStateManager.GetObjectStateEntry(Bp); var modProps = objState.GetModifiedProperties(); foreach (var