Example #1
0
        public T Sum <T>(string attrDefName)
        {
            var result = default(T);

            using (var reader = new SqlQueryReader(DataContext, Query))
            {
                var v = reader.GetSum(attrDefName);
                if (v != null)
                {
                    v.TryParse(out result);
                }
            }
            return(result);
        }
Example #2
0
 public object Sum(string attrDefName)
 {
     using (var reader = new SqlQueryReader(DataContext, Query))
         return(reader.GetSum(attrDefName));
 }
Example #3
0
 public object Sum(Guid attrDefId)
 {
     using (var reader = new SqlQueryReader(DataContext, Query))
         return(reader.GetSum(attrDefId));
 }