예제 #1
0
        private static void applyIncludedGroupFieldEqualityComparer(PropertyInfo property, ColumnAttributes columnAttributes, FieldInfo[] fieldsInfo)
        {
            var includeInGrouping = property.GetColumnIncludeInGroupingAttribute();
            if (includeInGrouping.HasValue)
                columnAttributes.IncludeInGrouping = includeInGrouping.Value;

            if (columnAttributes.IncludeInGrouping)
            {
                var equalityComparer = fieldsInfo.GetIncludedGroupFieldEqualityComparerAttribute(property.Name);
                if (equalityComparer != null)
                    columnAttributes.IncludedGroupFieldEqualityComparer = equalityComparer;
            }
        }