33 instantiations of SqlType
System.Data.Linq (33)
SqlClient\SqlTypeSystemProvider.cs (33)
39
return new
SqlType
(type, size);
49
return new
SqlType
(type, precision, scale);
79
return new
SqlType
(type);
144
static private readonly SqlType theBigInt = new
SqlType
(SqlDbType.BigInt);
145
static private readonly SqlType theBit = new
SqlType
(SqlDbType.Bit);
146
static private readonly SqlType theChar = new
SqlType
(SqlDbType.Char);
147
static private readonly SqlType theDateTime = new
SqlType
(SqlDbType.DateTime);
148
static private readonly SqlType theDate = new
SqlType
(SqlDbType.Date);
149
static private readonly SqlType theTime = new
SqlType
(SqlDbType.Time);
150
static private readonly SqlType theDateTime2 = new
SqlType
(SqlDbType.DateTime2);
151
static private readonly SqlType theDateTimeOffset = new
SqlType
(SqlDbType.DateTimeOffset);
154
static private readonly SqlType theDefaultDecimal = new
SqlType
(SqlDbType.Decimal, defaultDecimalPrecision, defaultDecimalScale);
155
static private readonly SqlType theFloat = new
SqlType
(SqlDbType.Float);
156
static private readonly SqlType theInt = new
SqlType
(SqlDbType.Int);
157
static private readonly SqlType theMoney = new
SqlType
(SqlDbType.Money, 19, 4);
158
static private readonly SqlType theReal = new
SqlType
(SqlDbType.Real);
159
static private readonly SqlType theUniqueIdentifier = new
SqlType
(SqlDbType.UniqueIdentifier);
160
static private readonly SqlType theSmallDateTime = new
SqlType
(SqlDbType.SmallDateTime);
161
static private readonly SqlType theSmallInt = new
SqlType
(SqlDbType.SmallInt);
162
static private readonly SqlType theSmallMoney = new
SqlType
(SqlDbType.SmallMoney, 10, 4);
163
static private readonly SqlType theTimestamp = new
SqlType
(SqlDbType.Timestamp);
164
static private readonly SqlType theTinyInt = new
SqlType
(SqlDbType.TinyInt);
165
static private readonly SqlType theXml = new
SqlType
(SqlDbType.Xml, LargeTypeSizeIndicator);
166
static private readonly SqlType theText = new
SqlType
(SqlDbType.Text, LargeTypeSizeIndicator);
167
static private readonly SqlType theNText = new
SqlType
(SqlDbType.NText, LargeTypeSizeIndicator);
168
static private readonly SqlType theImage = new
SqlType
(SqlDbType.Image, LargeTypeSizeIndicator);
257
return new
SqlType
(SqlDbType.Char, this.Size);
259
return new
SqlType
(SqlDbType.Text);
261
return new
SqlType
(SqlDbType.VarChar, this.Size);
814
result = new
SqlType
(index);
1368
bestType = new
SqlType
(bestType.SqlDbType, bestSize);
1458
return new
SqlType
(type);
1578
return new
SqlType
(type);
71 references to SqlType
System.Data.Linq (71)
SqlClient\Common\SqlFactory.cs (5)
267
SqlDbType sqlDbType = ((SqlTypeSystem.
SqlType
)(exp.SqlType)).SqlDbType;
272
return (((SqlTypeSystem.
SqlType
)(exp.SqlType)).SqlDbType == SqlDbType.Date);
276
return (((SqlTypeSystem.
SqlType
)(exp.SqlType)).SqlDbType == SqlDbType.Time);
280
return (((SqlTypeSystem.
SqlType
)(exp.SqlType)).SqlDbType == SqlDbType.DateTimeOffset);
284
SqlDbType sqlDbType = ((SqlTypeSystem.
SqlType
)(exp.SqlType)).SqlDbType;
SqlClient\Query\SqlParameterizer.cs (2)
141
SqlDbType leftSqlDbType = ((SqlTypeSystem.
SqlType
)(bo.Left.SqlType)).SqlDbType;
142
SqlDbType rightSqlDbType = ((SqlTypeSystem.
SqlType
)(bo.Right.SqlType)).SqlDbType;
SqlClient\SqlTypeSystemProvider.cs (64)
144
static private readonly
SqlType
theBigInt = new SqlType(SqlDbType.BigInt);
145
static private readonly
SqlType
theBit = new SqlType(SqlDbType.Bit);
146
static private readonly
SqlType
theChar = new SqlType(SqlDbType.Char);
147
static private readonly
SqlType
theDateTime = new SqlType(SqlDbType.DateTime);
148
static private readonly
SqlType
theDate = new SqlType(SqlDbType.Date);
149
static private readonly
SqlType
theTime = new SqlType(SqlDbType.Time);
150
static private readonly
SqlType
theDateTime2 = new SqlType(SqlDbType.DateTime2);
151
static private readonly
SqlType
theDateTimeOffset = new SqlType(SqlDbType.DateTimeOffset);
154
static private readonly
SqlType
theDefaultDecimal = new SqlType(SqlDbType.Decimal, defaultDecimalPrecision, defaultDecimalScale);
155
static private readonly
SqlType
theFloat = new SqlType(SqlDbType.Float);
156
static private readonly
SqlType
theInt = new SqlType(SqlDbType.Int);
157
static private readonly
SqlType
theMoney = new SqlType(SqlDbType.Money, 19, 4);
158
static private readonly
SqlType
theReal = new SqlType(SqlDbType.Real);
159
static private readonly
SqlType
theUniqueIdentifier = new SqlType(SqlDbType.UniqueIdentifier);
160
static private readonly
SqlType
theSmallDateTime = new SqlType(SqlDbType.SmallDateTime);
161
static private readonly
SqlType
theSmallInt = new SqlType(SqlDbType.SmallInt);
162
static private readonly
SqlType
theSmallMoney = new SqlType(SqlDbType.SmallMoney, 10, 4);
163
static private readonly
SqlType
theTimestamp = new SqlType(SqlDbType.Timestamp);
164
static private readonly
SqlType
theTinyInt = new SqlType(SqlDbType.TinyInt);
165
static private readonly
SqlType
theXml = new SqlType(SqlDbType.Xml, LargeTypeSizeIndicator);
166
static private readonly
SqlType
theText = new SqlType(SqlDbType.Text, LargeTypeSizeIndicator);
167
static private readonly
SqlType
theNText = new SqlType(SqlDbType.NText, LargeTypeSizeIndicator);
168
static private readonly
SqlType
theImage = new SqlType(SqlDbType.Image, LargeTypeSizeIndicator);
322
SqlType
sqlProviderType = (
SqlType
)type;
338
SqlType
sqlType = (
SqlType
)type;
673
SqlType
that = obj as
SqlType
;
806
protected Dictionary<int,
SqlType
> applicationTypes = new Dictionary<int,
SqlType
>();
812
SqlType
result = null;
972
SqlType
sqlType = (
SqlType
)type;
1008
internal virtual int? DetermineParameterSize(
SqlType
declaredType, DbParameter parameter) {
1021
protected int? GetLargestDeclarableSize(
SqlType
declaredType) {
1035
protected object GetParameterValue(
SqlType
type, object value) {
1090
SqlType
highest;
1093
highest = (
SqlType
)this.GetBestType(leftType, rightType);
1096
highest = (
SqlType
)(coercionPrecedence > 0 ? leftType : rightType);
1151
SqlType
sqlType = (
SqlType
)type;
1196
SqlType
arg0 = (
SqlType
)argumentTypes[0];
1197
SqlType
arg1 = argumentTypes.Length > 1 ? (
SqlType
)argumentTypes[1] : (
SqlType
)null;
1301
SqlType
sqlToType = (
SqlType
)toType;
1302
SqlType
sqlThisType = (
SqlType
)type;
1304
if (sqlToType.Category ==
SqlType
.TypeCategory.Numeric && sqlThisType.Category ==
SqlType
.TypeCategory.Char) {
1322
SqlType
bestType = (
SqlType
)(typeA.ComparePrecedenceTo(typeB) > 0 ? typeA : typeB);
1333
SqlType
sqlTypeA = (
SqlType
)typeA;
1334
SqlType
sqlTypeB = (
SqlType
)typeB;
1466
SqlType
sqlType = (
SqlType
)type;
1484
internal override int? DetermineParameterSize(
SqlType
declaredType, DbParameter parameter)
1586
SqlType
sqlType = (
SqlType
)type;