Пример #1
0
        public AuditItem(Type classType, params string[] isModified)
        {
            ClassType = classType;

            var auditItems = new List<AuditPropertyItem>();
            isModified.ToList().ForEach(propertyName =>
            {
                var item = new AuditPropertyItem(propertyName, false);
                item.SetPropertyInfo(ClassType);
                auditItems.Add(item);
            });

            AuditPropertyItems = auditItems;
        }
Пример #2
0
        public AuditItem(Type classType, params string[] isModified)
        {
            ClassType = classType;

            var auditItems = new List <AuditPropertyItem>();

            isModified.ToList().ForEach(propertyName =>
            {
                var item = new AuditPropertyItem(propertyName, false);
                item.SetPropertyInfo(ClassType);
                auditItems.Add(item);
            });

            AuditPropertyItems = auditItems;
        }