| |||||||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Methods Structures Enumerations Style examples Glossaries Active Charts VectorMath Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > DBUtil Class DBUtil ClassThis class provides a small set of static methods for extracting array data from database tables. See DbUtil Members for the full list of static methods, and the tutorial on aggregating data for some worked examples. public class DbUtil DbUtil Methods
Examplesp.Reset(240,160); sp.SetMargins(24,18,24,4); filler = (int)sp.MissingValue; mytable = new DataTable(); // Get some real data here!; myselection = mytable.Select("year>2006 AND symb='BP'"); int[] BP = DbUtil.GetIntegers(myselection,filler,"SharePrice"); sp.Heading = "BP"; sp.HeadingStyle = HeadingStyles.Right; sp.DrawLineGraph(BP); This example simply retrieves one complete column from the current selection, using SharpPlot’s missing value setting to replace any DBNull values in the data. RequirementsNamespace: Causeway Assembly: SharpPlot (in sharpplot.dll) |