83 references to DataTypePrecedence
System.Data.Common (83)
System\Data\Filter\BinaryNode.cs (83)
1182
private static
DataTypePrecedence
GetPrecedence(StorageType storageType)
1186
case StorageType.Boolean: return
DataTypePrecedence
.Boolean;
1187
case StorageType.Char: return
DataTypePrecedence
.Char;
1188
case StorageType.SByte: return
DataTypePrecedence
.SByte;
1189
case StorageType.Byte: return
DataTypePrecedence
.Byte;
1190
case StorageType.Int16: return
DataTypePrecedence
.Int16;
1191
case StorageType.UInt16: return
DataTypePrecedence
.UInt16;
1192
case StorageType.Int32: return
DataTypePrecedence
.Int32;
1193
case StorageType.UInt32: return
DataTypePrecedence
.UInt32;
1194
case StorageType.Int64: return
DataTypePrecedence
.Int64;
1195
case StorageType.UInt64: return
DataTypePrecedence
.UInt64;
1196
case StorageType.Single: return
DataTypePrecedence
.Single;
1197
case StorageType.Double: return
DataTypePrecedence
.Double;
1198
case StorageType.Decimal: return
DataTypePrecedence
.Decimal;
1199
case StorageType.DateTime: return
DataTypePrecedence
.DateTime;
1200
case StorageType.DateTimeOffset: return
DataTypePrecedence
.DateTimeOffset;
1201
case StorageType.TimeSpan: return
DataTypePrecedence
.TimeSpan;
1202
case StorageType.String: return
DataTypePrecedence
.String;
1203
case StorageType.SqlBinary: return
DataTypePrecedence
.SqlBinary;
1204
case StorageType.SqlBoolean: return
DataTypePrecedence
.SqlBoolean;
1205
case StorageType.SqlByte: return
DataTypePrecedence
.SqlByte;
1206
case StorageType.SqlBytes: return
DataTypePrecedence
.SqlBytes;
1207
case StorageType.SqlChars: return
DataTypePrecedence
.SqlChars;
1208
case StorageType.SqlDateTime: return
DataTypePrecedence
.SqlDateTime;
1209
case StorageType.SqlDecimal: return
DataTypePrecedence
.SqlDecimal;
1210
case StorageType.SqlDouble: return
DataTypePrecedence
.SqlDouble;
1211
case StorageType.SqlGuid: return
DataTypePrecedence
.SqlGuid;
1212
case StorageType.SqlInt16: return
DataTypePrecedence
.SqlInt16;
1213
case StorageType.SqlInt32: return
DataTypePrecedence
.SqlInt32;
1214
case StorageType.SqlInt64: return
DataTypePrecedence
.SqlInt64;
1215
case StorageType.SqlMoney: return
DataTypePrecedence
.SqlMoney;
1216
case StorageType.SqlSingle: return
DataTypePrecedence
.SqlSingle;
1217
case StorageType.SqlString: return
DataTypePrecedence
.SqlString;
1222
default: return
DataTypePrecedence
.Error;
1226
private static StorageType GetPrecedenceType(
DataTypePrecedence
code)
1230
case
DataTypePrecedence
.Error: return StorageType.Empty;
1231
case
DataTypePrecedence
.SByte: return StorageType.SByte;
1232
case
DataTypePrecedence
.Byte: return StorageType.Byte;
1233
case
DataTypePrecedence
.Int16: return StorageType.Int16;
1234
case
DataTypePrecedence
.UInt16: return StorageType.UInt16;
1235
case
DataTypePrecedence
.Int32: return StorageType.Int32;
1236
case
DataTypePrecedence
.UInt32: return StorageType.UInt32;
1237
case
DataTypePrecedence
.Int64: return StorageType.Int64;
1238
case
DataTypePrecedence
.UInt64: return StorageType.UInt64;
1239
case
DataTypePrecedence
.Decimal: return StorageType.Decimal;
1240
case
DataTypePrecedence
.Single: return StorageType.Single;
1241
case
DataTypePrecedence
.Double: return StorageType.Double;
1243
case
DataTypePrecedence
.Boolean: return StorageType.Boolean;
1244
case
DataTypePrecedence
.String: return StorageType.String;
1245
case
DataTypePrecedence
.Char: return StorageType.Char;
1247
case
DataTypePrecedence
.DateTimeOffset: return StorageType.DateTimeOffset;
1248
case
DataTypePrecedence
.DateTime: return StorageType.DateTime;
1249
case
DataTypePrecedence
.TimeSpan: return StorageType.TimeSpan;
1251
case
DataTypePrecedence
.SqlDateTime: return StorageType.SqlDateTime;
1252
case
DataTypePrecedence
.SqlDouble: return StorageType.SqlDouble;
1253
case
DataTypePrecedence
.SqlSingle: return StorageType.SqlSingle;
1254
case
DataTypePrecedence
.SqlDecimal: return StorageType.SqlDecimal;
1255
case
DataTypePrecedence
.SqlInt64: return StorageType.SqlInt64;
1256
case
DataTypePrecedence
.SqlInt32: return StorageType.SqlInt32;
1257
case
DataTypePrecedence
.SqlInt16: return StorageType.SqlInt16;
1258
case
DataTypePrecedence
.SqlByte: return StorageType.SqlByte;
1259
case
DataTypePrecedence
.SqlBoolean: return StorageType.SqlBoolean;
1260
case
DataTypePrecedence
.SqlString: return StorageType.SqlString;
1261
case
DataTypePrecedence
.SqlGuid: return StorageType.SqlGuid;
1262
case
DataTypePrecedence
.SqlBinary: return StorageType.SqlBinary;
1263
case
DataTypePrecedence
.SqlMoney: return StorageType.SqlMoney;
1266
goto case
DataTypePrecedence
.Error;
1292
if (leftPrecedence == (int)
DataTypePrecedence
.Error)
1298
if (rightPrecedence == (int)
DataTypePrecedence
.Error)
1323
DataTypePrecedence
higherPrec = (
DataTypePrecedence
)Math.Max(leftPrecedence, rightPrecedence);
1360
if (higherPrec <
DataTypePrecedence
.UInt64)
1375
if (leftPrecedence == (int)
DataTypePrecedence
.Error)
1381
if (rightPrecedence == (int)
DataTypePrecedence
.Error)
1409
if ((leftPrecedence > (int)
DataTypePrecedence
.SqlDouble && rightPrecedence < (int)
DataTypePrecedence
.TimeSpan))
1414
if ((leftPrecedence < (int)
DataTypePrecedence
.TimeSpan && rightPrecedence > (int)
DataTypePrecedence
.SqlDouble))
1419
if (leftPrecedence > (int)
DataTypePrecedence
.SqlDouble)
1437
DataTypePrecedence
higherPrec = (
DataTypePrecedence
)Math.Max(leftPrecedence, rightPrecedence);
1441
result = GetPrecedenceType((
DataTypePrecedence
)SqlResultType((int)higherPrec));
1473
if (higherPrec <
DataTypePrecedence
.UInt64)