Beispiel #1
0
 /// <summary>
 /// Use delimieters for identifiers in the generated query.
 /// </summary>
 /// <param name="delimiters">The Delimiters.</param>
 internal void UseIdentifierDelimiters(Delimiters delimiters)
 {
     Delimiters = delimiters;
 }
 /// <summary>
 /// Uses the square brackets delimiteres for identifiers in the generated query.
 /// </summary>
 public void UseSquareBracketsDelimiteres()
 => _delimiters = Delimiters.SquareBrackets;
Beispiel #3
0
 /// <summary>
 /// Gets the column information.
 /// </summary>
 /// <param name="columnName">Name of the column.</param>
 /// <returns>
 /// Column information.
 /// </returns>
 /// <exception cref="ArgumentNullException">When columnName is null.</exception>
 public ColumnInfo GetColumnInfo(string columnName)
 {
     Check.NotNull(columnName, nameof(columnName));
     return(_columns
            .TryGetValue(Delimiters.RemoveDelimiters(columnName), out ColumnInfo column) ? column : null);
 }
 /// <summary>
 /// Use delimieters for identifiers in the generated query.
 /// </summary>
 /// <param name="delimiters">The delimiters.</param>
 public void UseIdentifierDelimiters(Delimiters delimiters)
 => _delimiters = Check.NotNull(delimiters, nameof(delimiters));