public static bool IsEqual(this IUserProfileAudit from, IUserProfileAudit to) { return((from as IUserProfile).IsEqual(to) && to.AuditId == from.AuditId && to.Action == from.Action && to.ModificationTime == from.ModificationTime && to.ModifiedBy == from.ModifiedBy); }
public static void CopyTo(this IUserProfileAudit from, IUserProfileAudit to, bool allowDefaultValues = true) { (from as IUserProfile).CopyTo(to, allowDefaultValues); to.AuditId = from.AuditId; if (allowDefaultValues || from.Action != byte.MinValue) { to.Action = from.Action; } if (allowDefaultValues || from.ModificationTime != DateTime.MinValue) { to.ModificationTime = from.ModificationTime; } if (allowDefaultValues || from.ModifiedBy != 0) { to.ModifiedBy = from.ModifiedBy; } }