Class GetSqlDecimalAttribute
- Namespace
- LinqToDB.DataProvider.SqlServer
- Assembly
- linq2db.dll
Configures SQL Server decimal value materialization through provider-specific SqlDecimal reader.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true, AllowMultiple = true)]
public sealed class GetSqlDecimalAttribute : ValueConverterAttribute, _Attribute
- Inheritance
-
objectGetSqlDecimalAttribute
- Implements
- Inherited Members
- Extension Methods
Remarks
A value whose precision exceeds the CLR decimal range is read by reducing scale to fit, which can round away least-significant digits; a value whose magnitude exceeds MaxValue still throws OverflowException.
Constructors
GetSqlDecimalAttribute()
Initializes a new instance of the GetSqlDecimalAttribute class, configured to read SQL Server decimal values through the provider-specific SqlDecimal reader.
public GetSqlDecimalAttribute()