12 references to UNKNOWN_PRECISION_SCALE
System.Data (12)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (10)
539Debug.Assert(TdsEnums.UNKNOWN_PRECISION_SCALE == col.scale || (0 <= col.scale && col.scale <= 7), "Invalid scale for Time column: " + col.scale); 540schemaRow[Size] = TdsEnums.WHIDBEY_TIME_LENGTH[TdsEnums.UNKNOWN_PRECISION_SCALE != col.scale ? col.scale : col.metaType.Scale]; 543Debug.Assert(TdsEnums.UNKNOWN_PRECISION_SCALE == col.scale || (0 <= col.scale && col.scale <= 7), "Invalid scale for DateTime2 column: " + col.scale); 544schemaRow[Size] = TdsEnums.WHIDBEY_DATETIME2_LENGTH[TdsEnums.UNKNOWN_PRECISION_SCALE != col.scale ? col.scale : col.metaType.Scale]; 547Debug.Assert(TdsEnums.UNKNOWN_PRECISION_SCALE == col.scale || (0 <= col.scale && col.scale <= 7), "Invalid scale for DateTimeOffset column: " + col.scale); 548schemaRow[Size] = TdsEnums.WHIDBEY_DATETIMEOFFSET_LENGTH[TdsEnums.UNKNOWN_PRECISION_SCALE != col.scale ? col.scale : col.metaType.Scale]; 587if (TdsEnums.UNKNOWN_PRECISION_SCALE != col.baseTI.precision) { 594else if (TdsEnums.UNKNOWN_PRECISION_SCALE != col.precision) { 606if (TdsEnums.UNKNOWN_PRECISION_SCALE != col.baseTI.scale) { 613else if (TdsEnums.UNKNOWN_PRECISION_SCALE != col.scale) {
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (2)
821internal byte precision = TdsEnums.UNKNOWN_PRECISION_SCALE; // give default of unknown (-1) 822internal byte scale = TdsEnums.UNKNOWN_PRECISION_SCALE; // give default of unknown (-1)