Example #1
0
 /// <summary>
 /// Get value from a data reader.
 /// </summary>
 /// <typeparam name="T">Type of enum.</typeparam>
 /// <param name="columnDef">EnumAPColumnDef</param>
 /// <param name="reader">Data reader.</param>
 /// <param name="columnName">Name of column.</param>
 /// <returns>Value</returns>
 public static T GetValue <T>(this EnumAPColumnDef <T> columnDef, IDataReader reader, string columnName)
 {
     return(GetValue <T>(columnDef, reader, columnName, throwIfValidColumnName: true, defaultValue: default(T)));
 }
Example #2
0
 /// <summary>
 /// Build condition phrase of 'NOT BETWEEN'.
 /// </summary>
 /// <param name="begin">Begin value.</param>
 /// <param name="end">End value.</param>
 /// <returns>Condition phrase of 'NOT BETWEEN'.</returns>
 public APSqlConditionPhrase NotBetween(EnumAPColumnDef <T> begin, EnumAPColumnDef <T> end)
 {
     return(new APSqlConditionPhrase(this, APSqlConditionOperator.NotBetween, new EnumAPColumnDef <T>[2] {
         begin, end
     }));
 }