Quick example of Generic Economics

The world is moving to LINQ and here I am still learning how to think in Generics.  Take this quick example of how I am learning about generic economics.  I have a Community Server Chameleon List control of hours billed per week on all jobs per employee and wanted to display total hours.



I was thinking, okay, a #temp SQL table, calculate the total, shoot it back to the control.  Or no, add a second select to the stored proc and grab the total in a datareader.NextResult().  Then Generics Thought kicked in and the more economical approach that resulted.


And in Chameleon the display of that total hour figure is particularly easy wherever I want to place it on the page using

<DBVT:LaborPostData Property=”TotalHours” … />

Yeah, this new Generics stuff is pretty cool!

Article written by

A long time developer, I was an early adopter of Linux in the mid-90's for a few years until I entered corporate environments and worked with Microsoft technologies like ASP, then .NET. In 2008 I released Sueetie, an Online Community Platform built in .NET. In late 2012 I returned to my Linux roots and locked in on Java development. Much of my work is available on GitHub.