132 references to SQLResource
System.Data.Common (132)
System\Data\SQLTypes\SQLBinary.cs (1)
118
public override string ToString() => _value is null ?
SQLResource
.NullString : $"SqlBinary({_value.Length})";
System\Data\SQLTypes\SQLBoolean.cs (2)
190
return IsNull ?
SQLResource
.NullString : Value.ToString();
198
if (s ==
SQLResource
.NullString)
System\Data\SQLTypes\SQLByte.cs (12)
74
return IsNull ?
SQLResource
.NullString : m_value.ToString((IFormatProvider)null!);
79
if (s ==
SQLResource
.NullString)
102
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
114
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
126
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
141
throw new DivideByZeroException(
SQLResource
.DivideByZeroMessage);
154
throw new DivideByZeroException(
SQLResource
.DivideByZeroMessage);
199
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
211
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
223
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
235
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
247
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
System\Data\SQLTypes\SQLDateTime.cs (8)
148
throw new SqlTypeException(
SQLResource
.InvalidDateTimeMessage);
163
throw new OverflowException(
SQLResource
.DateTimeOverflowMessage);
174
throw new OverflowException(
SQLResource
.DateTimeOverflowMessage);
225
throw new OverflowException(
SQLResource
.DateTimeOverflowMessage);
238
throw new SqlTypeException(
SQLResource
.DateTimeOverflowMessage);
348
return
SQLResource
.NullString;
357
if (s ==
SQLResource
.NullString)
662
throw new SqlTypeException(
SQLResource
.TimeZoneSpecifiedMessage);
System\Data\SQLTypes\SQLDecimal.cs (28)
589
throw new ArgumentException(
SQLResource
.InvalidArraySizeMessage, nameof(bits));
621
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
661
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
678
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
926
return
SQLResource
.NullString;
996
if (s ==
SQLResource
.NullString)
1022
throw new FormatException(
SQLResource
.FormatMessage);
1062
throw new FormatException(
SQLResource
.FormatMessage);
1089
throw new FormatException(
SQLResource
.FormatMessage);
1110
throw new FormatException(
SQLResource
.FormatMessage);
1115
throw new FormatException(
SQLResource
.FormatMessage);
1149
throw new OverflowException(
SQLResource
.ConversionOverflowMessage);
1326
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
1373
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
1568
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
1576
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
1593
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
1614
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
1622
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
1685
throw new DivideByZeroException(
SQLResource
.DivideByZeroMessage);
2150
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
2157
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
2194
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
2202
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
2228
throw new DivideByZeroException(
SQLResource
.DivideByZeroMessage);
2301
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
2860
throw new SqlTypeException(
SQLResource
.InvalidPrecScaleMessage);
2866
throw new SqlTypeException(
SQLResource
.InvalidPrecScaleMessage);
System\Data\SQLTypes\SQLDouble.cs (8)
39
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
80
return IsNull ?
SQLResource
.NullString : m_value.ToString((IFormatProvider)null!);
85
if (s ==
SQLResource
.NullString)
110
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
123
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
136
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
147
throw new DivideByZeroException(
SQLResource
.DivideByZeroMessage);
152
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
System\Data\SQLTypes\SQLGuid.cs (3)
34
throw new ArgumentException(
SQLResource
.InvalidArraySizeMessage);
99
return
SQLResource
.NullString;
106
if (s ==
SQLResource
.NullString)
System\Data\SQLTypes\SQLInt16.cs (13)
73
return IsNull ?
SQLResource
.NullString : m_value.ToString((IFormatProvider)null!);
78
if (s ==
SQLResource
.NullString)
105
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
117
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
130
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
143
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
148
throw new DivideByZeroException(
SQLResource
.DivideByZeroMessage);
159
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
164
throw new DivideByZeroException(
SQLResource
.DivideByZeroMessage);
207
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
220
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
233
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
246
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
System\Data\SQLTypes\SQLInt32.cs (13)
74
return IsNull ?
SQLResource
.NullString : m_value.ToString((IFormatProvider)null!);
79
if (s ==
SQLResource
.NullString)
107
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
119
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
132
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
145
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
150
throw new DivideByZeroException(
SQLResource
.DivideByZeroMessage);
161
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
166
throw new DivideByZeroException(
SQLResource
.DivideByZeroMessage);
216
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
229
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
242
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
266
throw new OverflowException(
SQLResource
.ConversionOverflowMessage);
System\Data\SQLTypes\SQLInt64.cs (17)
75
return IsNull ?
SQLResource
.NullString : m_value.ToString((IFormatProvider)null!);
80
if (s ==
SQLResource
.NullString)
107
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
119
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
155
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
160
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
167
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
174
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
179
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
195
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
200
throw new DivideByZeroException(
SQLResource
.DivideByZeroMessage);
211
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
216
throw new DivideByZeroException(
SQLResource
.DivideByZeroMessage);
271
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
284
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
309
throw new OverflowException(
SQLResource
.ConversionOverflowMessage);
316
throw new OverflowException(
SQLResource
.ConversionOverflowMessage);
System\Data\SQLTypes\SQLMoney.cs (8)
70
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
86
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
92
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
204
return
SQLResource
.NullString;
241
if (s ==
SQLResource
.NullString)
273
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
289
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
301
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
System\Data\SQLTypes\SQLSingle.cs (8)
36
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
81
return IsNull ?
SQLResource
.NullString : _value.ToString((IFormatProvider)null!);
86
if (s ==
SQLResource
.NullString)
111
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
124
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
137
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
148
throw new DivideByZeroException(
SQLResource
.DivideByZeroMessage);
153
throw new OverflowException(
SQLResource
.ArithOverflowMessage);
System\Data\SQLTypes\SQLString.cs (3)
315
return IsNull ?
SQLResource
.NullString : m_value!;
356
throw new SqlTypeException(
SQLResource
.ConcatDiffCollationMessage);
372
throw new SqlTypeException(
SQLResource
.CompareDiffCollationMessage);
System\Data\SQLTypes\SQLUtility.cs (4)
69
public SqlNullValueException() : this(
SQLResource
.NullValueMessage, null)
107
public SqlTruncateException() : this(
SQLResource
.TruncationMessage, null)
145
public SqlNotFilledException() : this(
SQLResource
.NotFilledMessage, null)
170
public SqlAlreadyFilledException() : this(
SQLResource
.AlreadyFilledMessage, null)
System\Data\SQLTypes\SqlXml.cs (4)
188
throw new InvalidOperationException(
SQLResource
.ClosedXmlReaderMessage);
505
throw new NotSupportedException(
SQLResource
.InvalidOpStreamNonSeekable(method));
511
throw new NotSupportedException(
SQLResource
.InvalidOpStreamNonReadable(method));
517
throw new NotSupportedException(
SQLResource
.InvalidOpStreamNonWritable(method));