Skip to content

SqlConversions.ToSql method (1 of 9)

Converts the value to SQL.

public static string ToSql(this bool? value)
parameter description
value The value.

Return Value

The SQL constant, or NULL if the value has no value.

See Also


SqlConversions.ToSql method (2 of 9)

Converts the value to SQL.

public static string ToSql(this decimal? value)
parameter description
value The value.

Return Value

The SQL constant, or NULL if the value has no value.

See Also


SqlConversions.ToSql method (3 of 9)

Converts the value to SQL.

public static string ToSql(this double? value)
parameter description
value The value.

Return Value

The SQL constant, or NULL if the value has no value.

See Also


SqlConversions.ToSql method (4 of 9)

Converts the value to SQL.

public static string ToSql(this Guid? value)
parameter description
value The value.

Return Value

The SQL constant, or NULL if the value has no value.

See Also


SqlConversions.ToSql method (5 of 9)

Converts the value to SQL.

public static string ToSql(this int? value)
parameter description
value The value.

Return Value

The SQL constant, or NULL if the value has no value.

See Also


SqlConversions.ToSql method (6 of 9)

Converts the value to SQL.

public static string ToSql(this long? value)
parameter description
value The value.

Return Value

The SQL constant, or NULL if the value has no value.

See Also


SqlConversions.ToSql method (7 of 9)

Converts the value to SQL.

public static string ToSql(this DateTime value, ISqlDialect dialect = null)
parameter description
value The value.
dialect The dialect.

Return Value

The SQL constant.

See Also


SqlConversions.ToSql method (8 of 9)

Converts the value to SQL.

public static string ToSql(this DateTime? value, ISqlDialect dialect = null)
parameter description
value The value.
dialect The dialect.

Return Value

The SQL constant, or NULL if the value has no value.

See Also


SqlConversions.ToSql method (9 of 9)

Converts the value to SQL.

public static string ToSql(this string value, ISqlDialect dialect = null)
parameter description
value The value.
dialect The dialect.

Return Value

The SQL constant, or NULL if the value is null.

See Also