Example #1
0
		/// <summary>
		/// Create a new SingleAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		/// <param name="minValue">The min value.</param>
		/// <param name="maxValue">The max value.</param>
		public SingleAPRptColumn(DoubleAPColumnDef columnDef, Single minValue = Single.MinValue, Single maxValue = Single.MaxValue)
			: base(columnDef)
		{
			_minValue = minValue;
			_maxValue = maxValue;
		}
Example #2
0
		/// <summary>
		/// Create a new SingleAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		/// <param name="id">Column unique ID.</param>
		/// <param name="title">Title.</param>
		/// <param name="minValue">The min value.</param>
		/// <param name="maxValue">The max value.</param>
		public SingleAPRptColumn(DoubleAPColumnDef columnDef, string id, string title, Single minValue = Single.MinValue, Single maxValue = Single.MaxValue)
			: base(columnDef, id, title)
		{
			_minValue = minValue;
			_maxValue = maxValue;
		}
Example #3
0
 /// <summary>
 /// Get value from a data reader.
 /// </summary>
 /// <param name="columnDef">DoubleAPColumnDef</param>
 /// <param name="reader">Data reader.</param>
 /// <param name="columnName">Name of column.</param>
 /// <returns>Value</returns>
 public static Double GetValue(this DoubleAPColumnDef columnDef, IDataReader reader, string columnName)
 {
     return(GetValue <Double>(columnDef, reader, columnName, throwIfValidColumnName: true, defaultValue: default(Double)));
 }