Exemplo n.º 1
0
 /// <summary>
 /// Get value from a data reader.
 /// </summary>
 /// <param name="columnDef">DateTimeAPColumnDef</param>
 /// <param name="reader">Data reader.</param>
 /// <param name="columnName">Name of column.</param>
 /// <returns>Value</returns>
 public static DateTime GetValue(this DateTimeAPColumnDef columnDef, IDataReader reader, string columnName)
 {
     return(GetValue <DateTime>(columnDef, reader, columnName, throwIfValidColumnName: true, defaultValue: default(DateTime)));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Build a SQL date group Expression.
 /// </summary>
 /// <param name="columnDef">Column definition.</param>
 /// <param name="dateGroupMode">Date group mode.</param>
 /// <returns>SQL date group Expression.</returns>
 public static APSqlDateGroupExpr DateGroup(this DateTimeAPColumnDef columnDef, APSqlDateGroupMode dateGroupMode)
 {
     return(new APSqlDateGroupExpr(new APSqlColumnExpr(columnDef), dateGroupMode));
 }
Exemplo n.º 3
0
		/// <summary>
		/// Create a new DateTimeAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		/// <param name="dateTimeType">DateTime type.</param>
		public DateTimeAPRptColumn(DateTimeAPColumnDef columnDef, APRptDateTimeType dateTimeType)
			:this(columnDef, dateTimeType, DateTime.MinValue, DateTime.MaxValue)
		{
		}
Exemplo n.º 4
0
		/// <summary>
		/// Create a new DateTimeAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		/// <param name="id">Column unique ID.</param>
		/// <param name="title">Title.</param>
		/// <param name="dateTimeType">DateTime type.</param>
		/// <param name="minValue">The min value.</param>
		/// <param name="maxValue">The max value.</param>
		public DateTimeAPRptColumn(DateTimeAPColumnDef columnDef, string id, string title, APRptDateTimeType dateTimeType, DateTime minValue, DateTime maxValue)
			: base(columnDef, id, title)
		{
			_dateTimeType = dateTimeType;
			_minValue = minValue;
			_maxValue = maxValue;
		}
Exemplo n.º 5
0
		/// <summary>
		/// Create a new DateTimeAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		/// <param name="id">Column unique ID.</param>
		/// <param name="title">Title.</param>
		/// <param name="dateTimeType">DateTime type.</param>
		public DateTimeAPRptColumn(DateTimeAPColumnDef columnDef, string id, string title, APRptDateTimeType dateTimeType)
			: this(columnDef, id, title, dateTimeType, DateTime.MinValue, DateTime.MaxValue)
		{
			_dateTimeType = dateTimeType;
		}
Exemplo n.º 6
0
		/// <summary>
		/// Create a new DateTimeAPRptColumn.
		/// </summary>
		/// <param name="columnDef">Column define.</param>
		/// <param name="dateTimeType">DateTime type.</param>
		/// <param name="minValue">The min value.</param>
		/// <param name="maxValue">The max value.</param>
		public DateTimeAPRptColumn(DateTimeAPColumnDef columnDef, APRptDateTimeType dateTimeType, DateTime minValue, DateTime maxValue)
			: base(columnDef)
		{
			_dateTimeType = dateTimeType;
			_minValue = minValue;
			_maxValue = maxValue;
		}