83 references to DataTypePrecedence
System.Data (83)
fx\src\data\System\Data\Filter\BinaryNode.cs (83)
909
private
DataTypePrecedence
GetPrecedence(StorageType storageType) {
911
case StorageType.Boolean: return
DataTypePrecedence
.Boolean;
912
case StorageType.Char: return
DataTypePrecedence
.Char;
913
case StorageType.SByte: return
DataTypePrecedence
.SByte;
914
case StorageType.Byte: return
DataTypePrecedence
.Byte;
915
case StorageType.Int16: return
DataTypePrecedence
.Int16;
916
case StorageType.UInt16: return
DataTypePrecedence
.UInt16;
917
case StorageType.Int32: return
DataTypePrecedence
.Int32;
918
case StorageType.UInt32: return
DataTypePrecedence
.UInt32;
919
case StorageType.Int64: return
DataTypePrecedence
.Int64;
920
case StorageType.UInt64: return
DataTypePrecedence
.UInt64;
921
case StorageType.Single: return
DataTypePrecedence
.Single;
922
case StorageType.Double: return
DataTypePrecedence
.Double;
923
case StorageType.Decimal: return
DataTypePrecedence
.Decimal;
924
case StorageType.DateTime: return
DataTypePrecedence
.DateTime;
925
case StorageType.DateTimeOffset: return
DataTypePrecedence
.DateTimeOffset;
926
case StorageType.TimeSpan: return
DataTypePrecedence
.TimeSpan;
927
case StorageType.String: return
DataTypePrecedence
.String;
928
case StorageType.SqlBinary: return
DataTypePrecedence
.SqlBinary;
929
case StorageType.SqlBoolean: return
DataTypePrecedence
.SqlBoolean;
930
case StorageType.SqlByte: return
DataTypePrecedence
.SqlByte;
931
case StorageType.SqlBytes: return
DataTypePrecedence
.SqlBytes;
932
case StorageType.SqlChars: return
DataTypePrecedence
.SqlChars;
933
case StorageType.SqlDateTime: return
DataTypePrecedence
.SqlDateTime;
934
case StorageType.SqlDecimal: return
DataTypePrecedence
.SqlDecimal;
935
case StorageType.SqlDouble: return
DataTypePrecedence
.SqlDouble;
936
case StorageType.SqlGuid: return
DataTypePrecedence
.SqlGuid;
937
case StorageType.SqlInt16: return
DataTypePrecedence
.SqlInt16;
938
case StorageType.SqlInt32: return
DataTypePrecedence
.SqlInt32;
939
case StorageType.SqlInt64: return
DataTypePrecedence
.SqlInt64;
940
case StorageType.SqlMoney: return
DataTypePrecedence
.SqlMoney;
941
case StorageType.SqlSingle: return
DataTypePrecedence
.SqlSingle;
942
case StorageType.SqlString: return
DataTypePrecedence
.SqlString;
947
default: return
DataTypePrecedence
.Error;
951
private static StorageType GetPrecedenceType(
DataTypePrecedence
code) {
953
case
DataTypePrecedence
.Error: return StorageType.Empty;
954
case
DataTypePrecedence
.SByte: return StorageType.SByte;
955
case
DataTypePrecedence
.Byte: return StorageType.Byte;
956
case
DataTypePrecedence
.Int16: return StorageType.Int16;
957
case
DataTypePrecedence
.UInt16: return StorageType.UInt16;
958
case
DataTypePrecedence
.Int32: return StorageType.Int32;
959
case
DataTypePrecedence
.UInt32: return StorageType.UInt32;
960
case
DataTypePrecedence
.Int64: return StorageType.Int64;
961
case
DataTypePrecedence
.UInt64: return StorageType.UInt64;
962
case
DataTypePrecedence
.Decimal: return StorageType.Decimal;
963
case
DataTypePrecedence
.Single: return StorageType.Single;
964
case
DataTypePrecedence
.Double: return StorageType.Double;
966
case
DataTypePrecedence
.Boolean: return StorageType.Boolean;
967
case
DataTypePrecedence
.String: return StorageType.String;
968
case
DataTypePrecedence
.Char: return StorageType.Char;
970
case
DataTypePrecedence
.DateTimeOffset: return StorageType.DateTimeOffset;
971
case
DataTypePrecedence
.DateTime: return StorageType.DateTime;
972
case
DataTypePrecedence
.TimeSpan: return StorageType.TimeSpan;
974
case
DataTypePrecedence
.SqlDateTime: return StorageType.SqlDateTime;
975
case
DataTypePrecedence
.SqlDouble: return StorageType.SqlDouble;
976
case
DataTypePrecedence
.SqlSingle: return StorageType.SqlSingle;
977
case
DataTypePrecedence
.SqlDecimal: return StorageType.SqlDecimal;
978
case
DataTypePrecedence
.SqlInt64: return StorageType.SqlInt64;
979
case
DataTypePrecedence
.SqlInt32: return StorageType.SqlInt32;
980
case
DataTypePrecedence
.SqlInt16: return StorageType.SqlInt16;
981
case
DataTypePrecedence
.SqlByte: return StorageType.SqlByte;
982
case
DataTypePrecedence
.SqlBoolean: return StorageType.SqlBoolean;
983
case
DataTypePrecedence
.SqlString: return StorageType.SqlString;
984
case
DataTypePrecedence
.SqlGuid: return StorageType.SqlGuid;
985
case
DataTypePrecedence
.SqlBinary: return StorageType.SqlBinary;
986
case
DataTypePrecedence
.SqlMoney: return StorageType.SqlMoney;
989
goto case
DataTypePrecedence
.Error;
1012
if (leftPrecedence == (int)
DataTypePrecedence
.Error) {
1017
if (rightPrecedence == (int)
DataTypePrecedence
.Error) {
1040
DataTypePrecedence
higherPrec = (
DataTypePrecedence
)Math.Max(leftPrecedence, rightPrecedence);
1070
if (higherPrec <
DataTypePrecedence
.UInt64)
1084
if (leftPrecedence == (int)
DataTypePrecedence
.Error) {
1089
if (rightPrecedence == (int)
DataTypePrecedence
.Error) {
1114
if ((leftPrecedence > (int)
DataTypePrecedence
.SqlDouble && rightPrecedence <(int)
DataTypePrecedence
.TimeSpan)){
1118
if ((leftPrecedence < (int)
DataTypePrecedence
.TimeSpan && rightPrecedence >(int)
DataTypePrecedence
.SqlDouble)){
1122
if (leftPrecedence > (int)
DataTypePrecedence
.SqlDouble){
1138
DataTypePrecedence
higherPrec = (
DataTypePrecedence
)Math.Max(leftPrecedence, rightPrecedence);
1142
result = GetPrecedenceType((
DataTypePrecedence
)SqlResultType((int)higherPrec));
1168
if (higherPrec <
DataTypePrecedence
.UInt64)