Table of Contents

Class ValueToSqlConverter

Namespace
LinqToDB.Mapping
Assembly
linq2db.dll
public class ValueToSqlConverter : IConfigurationID, IEquatable<ValueToSqlConverter>
Inheritance
object
ValueToSqlConverter
Implements
Extension Methods

Constructors

ValueToSqlConverter()

public ValueToSqlConverter()

ValueToSqlConverter(params ValueToSqlConverter[]?)

public ValueToSqlConverter(params ValueToSqlConverter[]? converters)

Parameters

converters ValueToSqlConverter[]

Methods

CanConvert(DbDataType, DataOptions, object?)

public bool CanConvert(DbDataType dataType, DataOptions options, object? value)

Parameters

dataType DbDataType
options DataOptions
value object

Returns

bool

CanConvert(Type)

public bool CanConvert(Type type)

Parameters

type Type

Returns

bool

Convert(StringBuilder, MappingSchema, DataOptions, object?)

public StringBuilder Convert(StringBuilder stringBuilder, MappingSchema mappingSchema, DataOptions options, object? value)

Parameters

stringBuilder StringBuilder
mappingSchema MappingSchema
options DataOptions
value object

Returns

StringBuilder

Convert(StringBuilder, MappingSchema, DbDataType?, DataOptions, object?)

public StringBuilder Convert(StringBuilder stringBuilder, MappingSchema mappingSchema, DbDataType? dataType, DataOptions options, object? value)

Parameters

stringBuilder StringBuilder
mappingSchema MappingSchema
dataType DbDataType?
options DataOptions
value object

Returns

StringBuilder

Equals(ValueToSqlConverter?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ValueToSqlConverter? other)

Parameters

other ValueToSqlConverter

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

SetConverter(Type, Action<StringBuilder, DbDataType, DataOptions, object>?)

public void SetConverter(Type type, Action<StringBuilder, DbDataType, DataOptions, object>? converter)

Parameters

type Type
converter Action<StringBuilder, DbDataType, DataOptions, object>

TryConvert(StringBuilder, MappingSchema, DataOptions, object?)

public bool TryConvert(StringBuilder stringBuilder, MappingSchema mappingSchema, DataOptions options, object? value)

Parameters

stringBuilder StringBuilder
mappingSchema MappingSchema
options DataOptions
value object

Returns

bool

TryConvert(StringBuilder, MappingSchema, DbDataType?, DataOptions, object?)

public bool TryConvert(StringBuilder stringBuilder, MappingSchema mappingSchema, DbDataType? dataType, DataOptions options, object? value)

Parameters

stringBuilder StringBuilder
mappingSchema MappingSchema
dataType DbDataType?
options DataOptions
value object

Returns

bool