Exemplo n.º 1
0
		/// <summary>
		/// Create a new UInt16APRptColumn.
		/// </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 UInt16APRptColumn(UInt16APColumnDef columnDef, string id, string title, UInt16 minValue = UInt16.MinValue, UInt16 maxValue = UInt16.MaxValue)
			: base(columnDef, id, title)
		{
			_minValue = minValue;
			_maxValue = maxValue;
		}
Exemplo n.º 2
0
 /// <summary>
 /// Get value from a data reader.
 /// </summary>
 /// <param name="columnDef">UInt16APColumnDef</param>
 /// <param name="reader">Data reader.</param>
 /// <param name="columnName">Name of column.</param>
 /// <returns>Value</returns>
 public static UInt16 GetValue(this UInt16APColumnDef columnDef, IDataReader reader, string columnName)
 {
     return(GetValue <UInt16>(columnDef, reader, columnName, throwIfValidColumnName: true, defaultValue: default(UInt16)));
 }
Exemplo n.º 3
0
		/// <summary>
		/// Create a new UInt16APRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		/// <param name="minValue">The min value.</param>
		/// <param name="maxValue">The max value.</param>
		public UInt16APRptColumn(UInt16APColumnDef columnDef, UInt16 minValue = UInt16.MinValue, UInt16 maxValue = UInt16.MaxValue)
			: base(columnDef)
		{
			_minValue = minValue;
			_maxValue = maxValue;
		}