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