Class ValueToSqlConverter
public class ValueToSqlConverter : IConfigurationID, IEquatable<ValueToSqlConverter>
- Inheritance
-
objectValueToSqlConverter
- Implements
- Extension Methods
Constructors
ValueToSqlConverter()
public ValueToSqlConverter()
ValueToSqlConverter(params ValueToSqlConverter[]?)
public ValueToSqlConverter(params ValueToSqlConverter[]? converters)
Parameters
convertersValueToSqlConverter[]
Methods
CanConvert(DbDataType, DataOptions, object?)
public bool CanConvert(DbDataType dataType, DataOptions options, object? value)
Parameters
dataTypeDbDataTypeoptionsDataOptionsvalueobject
Returns
CanConvert(Type)
public bool CanConvert(Type type)
Parameters
typeType
Returns
Convert(StringBuilder, MappingSchema, DataOptions, object?)
public StringBuilder Convert(StringBuilder stringBuilder, MappingSchema mappingSchema, DataOptions options, object? value)
Parameters
stringBuilderStringBuildermappingSchemaMappingSchemaoptionsDataOptionsvalueobject
Returns
Convert(StringBuilder, MappingSchema, DbDataType?, DataOptions, object?)
public StringBuilder Convert(StringBuilder stringBuilder, MappingSchema mappingSchema, DbDataType? dataType, DataOptions options, object? value)
Parameters
stringBuilderStringBuildermappingSchemaMappingSchemadataTypeDbDataType?optionsDataOptionsvalueobject
Returns
Equals(ValueToSqlConverter?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ValueToSqlConverter? other)
Parameters
otherValueToSqlConverterAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe 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
typeTypeconverterAction<StringBuilder, DbDataType, DataOptions, object>
TryConvert(StringBuilder, MappingSchema, DataOptions, object?)
public bool TryConvert(StringBuilder stringBuilder, MappingSchema mappingSchema, DataOptions options, object? value)
Parameters
stringBuilderStringBuildermappingSchemaMappingSchemaoptionsDataOptionsvalueobject
Returns
TryConvert(StringBuilder, MappingSchema, DbDataType?, DataOptions, object?)
public bool TryConvert(StringBuilder stringBuilder, MappingSchema mappingSchema, DbDataType? dataType, DataOptions options, object? value)
Parameters
stringBuilderStringBuildermappingSchemaMappingSchemadataTypeDbDataType?optionsDataOptionsvalueobject