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