72 references to Decimal
System.Data (53)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (5)
44
SqlDbType.
Decimal
, // System.Decimal
70
SqlDbType.
Decimal
, // System.Data.SqlTypes.SqlDecimal
270
case SqlDbType.
Decimal
:
683
else if (dbType == SqlDbType.
Decimal
) {
878
case SqlDbType.
Decimal
:
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (3)
103
internal static readonly SmiMetaData DefaultDecimal = new SmiMetaData(SqlDbType.
Decimal
, 9, 18, 0, SqlCompareOptions.None); // SqlDbType.Decimal
381
case SqlDbType.
Decimal
:
471
case SqlDbType.
Decimal
:
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (1)
364
case StorageType.SqlDecimal: return new SmiMetaData(SqlDbType.
Decimal
, 17, ((SqlDecimal)_object).Precision, ((SqlDecimal)_object).Scale, 0, SqlCompareOptions.None, null);
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (9)
862
case SqlDbType.
Decimal
:
1010
case SqlDbType.
Decimal
:
1198
case SqlDbType.
Decimal
: {
1748
case SqlDbType.
Decimal
:
1874
case SqlDbType.
Decimal
: { // block to scope sqlReader local to avoid conflicts
2068
case SqlDbType.
Decimal
:
2191
case SqlDbType.
Decimal
:
2394
if (SqlDbType.
Decimal
== metaData.SqlDbType) {
2406
if (SqlDbType.
Decimal
== metaData.SqlDbType || SqlDbType.Variant == metaData.SqlDbType) {
fx\src\data\System\Data\Sql\SqlMetaData.cs (12)
191
case SqlDbType.
Decimal
:
424
SqlDbType.
Decimal
== dbType ||
600
if (SqlDbType.
Decimal
== dbType) {
618
if (SqlDbType.
Decimal
== dbType) {
765
if (SqlDbType.
Decimal
!= SqlDbType &&
771
if (SqlDbType.
Decimal
!= SqlDbType) {
865
if (SqlDbType.
Decimal
!= SqlDbType)
1141
smd = new SqlMetaData(name, SqlDbType.
Decimal
, sd.Precision, sd.Scale);
1237
bPrec = sxm_rgDefaults[(int)SqlDbType.
Decimal
].Precision;
1238
scale = sxm_rgDefaults[(int)SqlDbType.
Decimal
].Scale;
1240
smd = new SqlMetaData(name, SqlDbType.
Decimal
, bPrec, scale);
1575
new SqlMetaData("decimal", SqlDbType.
Decimal
,
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
2878
if (p.SqlDbType == SqlDbType.
Decimal
) {
5250
if (rec.type == SqlDbType.
Decimal
) {
5798
if (mt.SqlDbType == SqlDbType.
Decimal
) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (3)
567
if (SqlDbType.
Decimal
== colMetaData.SqlDbType) {
605
case SqlDbType.
Decimal
:
628
if ( SqlDbType.
Decimal
== colMetaData.SqlDbType ||
fx\src\data\System\Data\SqlClient\SqlEnums.cs (3)
180
case SqlDbType.
Decimal
: return MetaDecimal;
569
sqlType = SqlDbType.
Decimal
;
785
(38, 4, 17, true, false, false, TdsEnums.SQLNUMERICN, TdsEnums.SQLNUMERICN, MetaTypeName.DECIMAL, typeof(System.Decimal), typeof(SqlDecimal), SqlDbType.
Decimal
, DbType.Decimal, 2);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (5)
483
if ( SqlDbType.
Decimal
== mt.SqlDbType ) {
572
if ((0 == precision) && (SqlDbType.
Decimal
== dbtype)) {
579
if (sqlDbType == SqlDbType.
Decimal
&& value > TdsEnums.MAX_NUMERIC_PRECISION) {
608
if ((0 == scale) && (SqlDbType.
Decimal
== dbtype)) {
1447
else if ( (!ShouldSerializePrecision() && !ShouldSerializeScale()) && (_metaType.SqlDbType == SqlDbType.
Decimal
) ) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (8)
3451
if (rec.type == SqlDbType.
Decimal
) {
4223
if (col.type == SqlDbType.
Decimal
) {
4840
case SqlDbType.
Decimal
:
8207
if (mt.SqlDbType == SqlDbType.
Decimal
) {
8445
if (mt.SqlDbType == SqlDbType.
Decimal
) {
8874
case SqlDbType.
Decimal
:
9229
case SqlDbType.
Decimal
:
9330
case SqlDbType.
Decimal
:
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (1)
70
case SqlDbType.
Decimal
:
System.Data.Entity (1)
System\Data\SqlClient\SqlProviderServices.cs (1)
489
return SqlDbType.
Decimal
;
System.Data.Linq (16)
SqlClient\SqlTypeSystemProvider.cs (16)
43
if (type != SqlDbType.
Decimal
&& precision == 0 && scale == 0) {
46
else if (type == SqlDbType.
Decimal
&& precision == defaultDecimalPrecision && scale == defaultDecimalScale) {
63
case SqlDbType.
Decimal
: return theDefaultDecimal;
110
case SqlDbType.
Decimal
:
154
static private readonly SqlType theDefaultDecimal = new SqlType(SqlDbType.
Decimal
, defaultDecimalPrecision, defaultDecimalScale);
422
case SqlDbType.
Decimal
:
508
case SqlDbType.
Decimal
:
618
case SqlDbType.
Decimal
:
723
case SqlDbType.
Decimal
: return 18;
762
case SqlDbType.
Decimal
:
916
case SqlDbType.
Decimal
:
1335
if (sqlTypeA.HasPrecisionAndScale && sqlTypeB.HasPrecisionAndScale && bestType.SqlDbType == SqlDbType.
Decimal
) {
1432
return Create(SqlDbType.
Decimal
, 20, 0);
1434
return Create(SqlDbType.
Decimal
, 29, size ?? 4);
1552
return Create(SqlDbType.
Decimal
, 20, 0);
1554
return Create(SqlDbType.
Decimal
, 29, size ?? 4);
System.Web (2)
Management\SqlWebEventProvider.cs (2)
107
sqlCommand.Parameters.Add(new SqlParameter("@EventSequence", SqlDbType.
Decimal
));
108
sqlCommand.Parameters.Add(new SqlParameter("@EventOccurrence", SqlDbType.
Decimal
));