Beispiel #1
0
        private void AddAggregateColumn(PropertyInfo propInfo)
        {
            var attr = propInfo.GetCustomAttribute(typeof(AggregateColumn)) as AggregateColumn;

            if (attr != null)
            {
                AggregateColumns.Add(new AggregateAttributeMapping()
                {
                    PropInOutput      = propInfo,
                    PropNameInOutput  = propInfo.Name,
                    PropNameInInput   = attr.InputProperty,
                    AggregationMethod = attr.AggregationMethod,
                    OutputType        = TypeInfo.TryGetUnderlyingType(propInfo)
                });
            }
        }
Beispiel #2
0
        private void AddUnderlyingType(PropertyInfo propInfo)
        {
            Type t = TypeInfo.TryGetUnderlyingType(propInfo);

            UnderlyingPropType.Add(propInfo, t);
        }