35 instantiations of SqlString
System.Data (35)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (8)
638result = new SqlString( temp ); 648result = new SqlString( xmlValue.Value ); 1005result = new SqlString( GetString_Unchecked( sink, getters, ordinal ) ); 1026result = new SqlString( GetString_Unchecked( sink, getters, ordinal ) ); 1029result = new SqlString( GetString_Unchecked( sink, getters, ordinal ) ); 1032result = new SqlString( GetString_Unchecked( sink, getters, ordinal ) ); 1050result = new SqlString( GetString_Unchecked( sink, getters, ordinal ) ); 1062result = new SqlString( GetString_Unchecked( sink, getters, ordinal ) );
fx\src\data\System\Data\Common\SQLConvert.cs (1)
652return new SqlString((string)value);
fx\src\data\System\Data\Common\SQLTypes\SQLCharsStorage.cs (1)
92SqlString newValue = new SqlString();
fx\src\data\System\Data\Common\SQLTypes\SQLStringStorage.cs (1)
146SqlString newValue = new SqlString();
fx\src\data\System\Data\Sql\SqlMetaData.cs (2)
879return new SqlString(value.Value.PadRight((int)MaxLength)); 894value = new SqlString(value.Value.Remove((int)MaxLength, (int)(value.Value.Length - MaxLength)));
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (2)
391return new SqlString(KatmaiDateTimeString); 626return new SqlString((String)_object);
fx\src\data\System\Data\SqlClient\SqlCachedBuffer.cs (1)
117return new SqlString(str);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
2647rawValue = new SqlString(xmlValue.Value);
fx\src\data\System\Data\SqlClient\SqlEnums.cs (2)
497sqlVal = new SqlString((string)comVal); 503sqlVal = new SqlString(((char)comVal).ToString());
fx\src\data\System\Data\SQLTypes\SQLString.cs (16)
73public static readonly SqlString Null = new SqlString(true); 343return new SqlString(x); 409return new SqlString(x.m_lcid, x.m_flag, x.m_value + y.m_value, 511return x.IsNull ? Null : new SqlString((x.Value).ToString()); 519return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null)); 527return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null)); 535return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null)); 543return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null)); 551return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null)); 559return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null)); 567return x.IsNull ? Null : new SqlString(x.ToString()); 575return x.IsNull ? Null : new SqlString(x.ToString()); 583return x.IsNull ? Null : new SqlString(x.ToString()); 591return x.IsNull ? Null : new SqlString(x.ToString()); 599return new SqlString(true); 601SqlString ret = new SqlString(m_value, m_lcid, m_flag);
282 references to SqlString
System.Data (282)
fx\src\data\Microsoft\SqlServer\Server\ITypedGetters.cs (1)
73SqlString GetSqlString( int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSetters.cs (2)
73void SetSqlString( int ordinal, SqlString value ); 76void SetSqlString( int ordinal, SqlString value, int offset );
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
126ht.Add( typeof( SqlString ), ExtendedClrTypeCode.SqlString ); 242else if (value.GetType() == typeof(SqlString))
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (3)
352public virtual SqlString GetSqlString( int ordinal ) { 705public virtual void SetSqlString( int ordinal, SqlString value ) 715public virtual void SetSqlString( int ordinal, SqlString value, int offset ) {
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (3)
410public virtual SqlString GetSqlString( int ordinal ) { 763public virtual void SetSqlString( int ordinal, SqlString value ) 773public virtual void SetSqlString( int ordinal, SqlString value, int offset ) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (2)
343public virtual SqlString GetSqlString(int ordinal) { 548public virtual void SetSqlString(int ordinal, SqlString value) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (17)
405SqlString stringValue; 421stringValue = (SqlString) obj; 630internal static SqlString GetSqlString( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) { 631SqlString result; 634result = SqlString.Null; 645result = SqlString.Null; 656result = (SqlString) obj; 1087SqlString.Null, // SqlDbType.Char 1094SqlString.Null, // SqlDbType.NChar 1095SqlString.Null, // SqlDbType.NText 1096SqlString.Null, // SqlDbType.NVarChar 1102SqlString.Null, // SqlDbType.Text 1106SqlString.Null, // SqlDbType.VarChar 1540internal static void SetSqlString( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlString value ) { 1628case ExtendedClrTypeCode.SqlString: SetSqlString_LengthChecked( sink, setters, ordinal, metaData, (SqlString) value, offset ); break; 2698private static void SetSqlString_LengthChecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlString value, int offset ) { 3573private static void SetSqlString_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlString value, int offset, int length ) {
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
50typeof(SqlString),
fx\src\data\System\Data\Common\DataStorage.cs (1)
113typeof(SqlString),
fx\src\data\System\Data\Common\SQLConvert.cs (5)
365public static SqlString ConvertToSqlString(object value) { 368return SqlString.Null; 375return (SqlString)value; 379throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlString)); 741return ((SqlString)value).Value;
fx\src\data\System\Data\Common\SQLTypes\SQLCharsStorage.cs (2)
92SqlString newValue = new SqlString(); 102return (new SqlChars((SqlString)tmp));
fx\src\data\System\Data\Common\SQLTypes\SQLStringStorage.cs (18)
22private SqlString[] values; 25: base(column, typeof(SqlString), SqlString.Null, SqlString.Null, StorageType.SqlString) { 82throw ExprException.Overflow(typeof(SqlString)); 91public int Compare(SqlString valueNo1, SqlString valueNo2) { 106return Compare(values[recordNo], (SqlString)value); 125SqlString value = values[record]; 138SqlString[] newValues = new SqlString[capacity]; 146SqlString newValue = new SqlString(); 155return ((SqlString)tmp); 160Debug.Assert((value.GetType() == typeof(SqlString)), "wrong input type"); 171return new SqlString[recordCount]; 175SqlString[] typedStore = (SqlString[]) store; 181values = (SqlString[]) store;
fx\src\data\System\Data\DataColumn.cs (3)
565else if (typeof(SqlString) == value) { // since string types can be null in value! DO NOT REMOVE THIS 952if ((DataType != typeof(string)) && (DataType != typeof(SqlString))) { 1646if (!DataStorage.IsObjectNull(value) && ((SqlString)value).Value.Length > MaxLength) {
fx\src\data\System\Data\Filter\BinaryNode.cs (4)
1231if (!(vRight is string) && !(vRight is SqlString)) { 1252if (!(vLeft is string) && !(vLeft is SqlString)) { 1259if (vLeft is SqlString) 1260tempStr = ((SqlString)vLeft).Value;
fx\src\data\System\Data\Filter\FunctionNode.cs (15)
138if ((typeof(string) != (argumentValues[i].GetType())) &&(typeof(SqlString) != (argumentValues[i].GetType()))){ 310if (argumentValues[0] is SqlString) 311argumentValues[0] = ((SqlString)argumentValues[0]).Value; 313if (argumentValues[1] is SqlString) 314argumentValues[1] = ((SqlString)argumentValues[1]).Value; 345Debug.Assert((argumentValues[0] is string)||(argumentValues[0] is SqlString), "Invalid argument type for " + funcs[info].name); 347if (argumentValues[0] is SqlString){ 348if (((SqlString)argumentValues[0]).IsNull) { 352argumentValues[0] = ((SqlString)argumentValues[0]).Value; 361Debug.Assert((argumentValues[0] is string)||(argumentValues[0] is SqlString), "Invalid first argument " + argumentValues[0].GetType().FullName + " in " + funcs[info].name); 383if (argumentValues[0] is SqlString) 384argumentValues[0] = ((SqlString)argumentValues[0]).Value; 401Debug.Assert((argumentValues[0] is string)||(argumentValues[0] is SqlString), "Invalid argument type for " + funcs[info].name); 406if (argumentValues[0] is SqlString) 407 argumentValues[0] = ((SqlString)argumentValues[0]).Value;
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (4)
269if ((null == xml) && (_readerDataValues[i] is System.Data.SqlTypes.SqlString)) { 270System.Data.SqlTypes.SqlString x = (System.Data.SqlTypes.SqlString)_readerDataValues[i]; 829if (fieldType == typeof(string) || (fieldType == typeof(SqlTypes.SqlString))) {
fx\src\data\System\Data\Sql\SqlMetaData.cs (7)
870public SqlString Adjust(SqlString value) { 1100else if (dataType == typeof(SqlString)) 1101value = this.Adjust((SqlString)value); 1244else if (dataType == typeof(SqlString)) 1246SqlString ss = (SqlString)value;
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (9)
382internal SqlString KatmaiDateTimeSqlString { 389return SqlString.Null; 393return (SqlString)this.SqlValue; // anything else we haven't thought of goes through boxing. 620internal SqlString SqlString { 624return SqlString.Null; 632return SqlString.Null; 636return (SqlString)this.SqlValue; // anything else we haven't thought of goes through boxing. 752case SqlBuffer.StorageType.String: return typeof(SqlString); 753case SqlBuffer.StorageType.SqlCachedBuffer: return typeof(SqlString);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (5)
681Debug.Assert(rowvalue is SqlString); 682SqlString collation_name = (SqlString)rowvalue; 1410int len = ((isSqlType) && (!typeChanged)) ? ((SqlString)value).Value.Length : ((string)value).Length; 1434Debug.Assert((value is XmlReader) || (value is SqlCachedBuffer) || (value is string) || (value is SqlString) || (value is XmlDataFeed), "Invalid value type of Xml datatype");
fx\src\data\System\Data\SqlClient\SqlCachedBuffer.cs (2)
113internal SqlString ToSqlString() { 115return SqlString.Null;
fx\src\data\System\Data\SqlClient\SqlCommand.cs (4)
5838SqlString sval = val is SqlString ? (SqlString)val : SqlString.Null;
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (5)
99private static readonly Type _typeofSqlString = typeof(SqlString); 1674SqlString temp = GetSqlString(i); 2307SqlString data; 2364virtual public SqlString GetSqlString(int i) { 2644rawValue = SqlString.Null;
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
784public override SqlString GetSqlString(int ordinal) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (15)
334else if (dataType == typeof(SqlString)) { 335return ((inferLen && !((SqlString)value).IsNull) ? PromoteStringType(((SqlString)value).Value) : MetaNVarChar); // MDAC 87587 390else if (sqlType == typeof(SqlString)) return SqlString.Null; 432else if (sqlVal is SqlString) 433comVal = ((SqlString)sqlVal).Value; 755(255, 255, -1, false, false, false, TdsEnums.SQLBIGCHAR, TdsEnums.SQLBIGCHAR, MetaTypeName.CHAR, typeof(System.String), typeof(SqlString), SqlDbType.Char, DbType.AnsiStringFixedLength, 7); 758(255, 255, -1, false, false, false, TdsEnums.SQLBIGVARCHAR, TdsEnums.SQLBIGVARCHAR, MetaTypeName.VARCHAR, typeof(System.String), typeof(SqlString), SqlDbType.VarChar, DbType.AnsiString, 7); 761(255, 255, -1, false, true, true, TdsEnums.SQLBIGVARCHAR, TdsEnums.SQLBIGVARCHAR, MetaTypeName.VARCHAR, typeof(System.String), typeof(SqlString), SqlDbType.VarChar, DbType.AnsiString, 7); 764(255, 255, -1, false, true, false, TdsEnums.SQLTEXT, TdsEnums.SQLTEXT, MetaTypeName.TEXT, typeof(System.String), typeof(SqlString), SqlDbType.Text, DbType.AnsiString, 0); 770(255, 255, -1, false, false, false, TdsEnums.SQLNCHAR, TdsEnums.SQLNCHAR, MetaTypeName.NCHAR, typeof(System.String), typeof(SqlString), SqlDbType.NChar, DbType.StringFixedLength, 7); 773(255, 255, -1, false, false, false, TdsEnums.SQLNVARCHAR, TdsEnums.SQLNVARCHAR, MetaTypeName.NVARCHAR, typeof(System.String), typeof(SqlString), SqlDbType.NVarChar, DbType.String, 7); 776(255, 255, -1, false, true, true, TdsEnums.SQLNVARCHAR, TdsEnums.SQLNVARCHAR, MetaTypeName.NVARCHAR, typeof(System.String), typeof(SqlString), SqlDbType.NVarChar, DbType.String, 7); 779(255, 255, -1, false, true, false, TdsEnums.SQLNTEXT, TdsEnums.SQLNTEXT, MetaTypeName.NTEXT, typeof(System.String), typeof(SqlString), SqlDbType.NText, DbType.String, 7);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (13)
224if ((value & SqlString.x_iValidSqlCompareOptionMask) != value) { 417if ( value is SqlString && !( (SqlString)value ).IsNull ) { 418localeId = ( (SqlString)value ).LCID; 428if ( value is SqlString && !( (SqlString)value ).IsNull ) { 429compareOpts = ( (SqlString)value ).SqlCompareOptions; 917else if (typeof(SqlString) == currentType) { 1641if (value is SqlString) { 1642return ((SqlString)value).Value.Length; 1691if (value is SqlString) { 1692if (((SqlString) value).IsNull) // MDAC #79648 1695return ((SqlString) value).Value.Length;
fx\src\data\System\Data\SqlClient\TdsParser.cs (19)
8331if (value is SqlString) { 8332s = ((SqlString)value).Value; 9434string stringValue = (isSqlType) ? ((SqlString)value).Value : (string)value; 9447actualLengthInBytes = ((isSqlType) ? ((SqlString)value).Value.Length : ((string)value).Length) * 2; 9551stringValue = ((SqlString)value).Value; 9563ccb = ((isSqlType) ? ((SqlString)value).Value.Length : ((string)value).Length) * 2; 9570ccb = ((isSqlType) ? ((SqlString)value).Value.Length : ((string)value).Length) * 2; 9903if(currentType == typeof(SqlString)) { 9904if (!((SqlString)value).IsNull && ((((SqlString)value).Value).Length > 0)) { 9905if ((((SqlString)value).Value[0] & 0xff) != 0xff) 10032Debug.Assert(value is SqlString); 10033return WriteEncodingChar(((SqlString)value).Value, actualLength, offset, _defaultEncoding, stateObj, canAccumulate:false); 10060Debug.Assert(value is SqlString); 10061return WriteString(((SqlString)value).Value, actualLength, offset, stateObj, canAccumulate:false); 10986Debug.Assert(value is SqlString); 10987return SerializeEncodingChar(((SqlString)value).Value, actualLength, offset, _defaultEncoding); 11004Debug.Assert(value is SqlString); 11005return SerializeString(((SqlString)value).Value, actualLength, offset);
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (1)
378Debug.Assert((value & SqlString.x_iValidSqlCompareOptionMask) == value, "invalid set_SqlCompareOptions value");
fx\src\data\System\Data\SQLTypes\SQLBoolean.cs (3)
362public static explicit operator SqlBoolean(SqlString x) { 497public SqlString ToSqlString() { 498return (SqlString)this;
fx\src\data\System\Data\SQLTypes\SQLByte.cs (3)
333public static explicit operator SqlByte(SqlString x) { 497public SqlString ToSqlString() { 498return (SqlString)this;
fx\src\data\System\Data\SQLTypes\SQLChars.cs (5)
119 public SqlChars(SqlString value) : this (value.IsNull ? (char[])null : value.Value.ToCharArray()) { 439 public SqlString ToSqlString() { 440 return IsNull ? SqlString.Null : new String(Value); 448 public static explicit operator SqlString(SqlChars value) { 453 public static explicit operator SqlChars(SqlString value) {
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (3)
470public static explicit operator SqlDateTime(SqlString x) { 564public SqlString ToSqlString() { 565return (SqlString)this;
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (3)
1771public static explicit operator SqlDecimal(SqlString x) { 2906public SqlString ToSqlString() { 2907return (SqlString)this;
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (3)
280public static explicit operator SqlDouble(SqlString x) { 417public SqlString ToSqlString() { 418return (SqlString)this;
fx\src\data\System\Data\SQLTypes\SQLGuid.cs (3)
191public static explicit operator SqlGuid(SqlString x) { 290public SqlString ToSqlString() { 291return (SqlString)this;
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (3)
343public static explicit operator SqlInt16(SqlString x) { 506public SqlString ToSqlString() { 507return (SqlString)this;
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (3)
350public static explicit operator SqlInt32(SqlString x) { 518public SqlString ToSqlString() { 519return (SqlString)this;
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (3)
405public static explicit operator SqlInt64(SqlString x) { 573public SqlString ToSqlString() { 574return (SqlString)this;
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (3)
420public static explicit operator SqlMoney(SqlString x) { 558public SqlString ToSqlString() { 559return (SqlString)this;
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (3)
286public static explicit operator SqlSingle(SqlString x) { 422public SqlString ToSqlString() { 423return (SqlString)this;
fx\src\data\System\Data\SQLTypes\SQLString.cs (79)
69/// Represents a null value that can be assigned to the <see cref='System.Data.SqlTypes.SqlString.Value'/> property of an instance of 70/// the <see cref='System.Data.SqlTypes.SqlString'/> class. 73public static readonly SqlString Null = new SqlString(true); 125/// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. 158/// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. 167/// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. 176/// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. 206/// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. 226/// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. 234/// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. 260/// Gets whether the <see cref='System.Data.SqlTypes.SqlString.Value'/> of the <see cref='System.Data.SqlTypes.SqlString'/> is <see cref='System.Data.SqlTypes.SqlString.Null'/>. 342public static implicit operator SqlString(String x) { 350public static explicit operator String(SqlString x) { 356/// Converts a <see cref='System.Data.SqlTypes.SqlString'/> object to a string. 402public static SqlString operator +(SqlString x, SqlString y) { 404return SqlString.Null; 417private static int StringCompare(SqlString x, SqlString y) 460private static SqlBoolean Compare(SqlString x, SqlString y, EComparison ecExpectedResult) 510public static explicit operator SqlString(SqlBoolean x) { 518public static explicit operator SqlString(SqlByte x) { 526public static explicit operator SqlString(SqlInt16 x) { 534public static explicit operator SqlString(SqlInt32 x) { 542public static explicit operator SqlString(SqlInt64 x) { 550public static explicit operator SqlString(SqlSingle x) { 558public static explicit operator SqlString(SqlDouble x) { 566public static explicit operator SqlString(SqlDecimal x) { 574public static explicit operator SqlString(SqlMoney x) { 582public static explicit operator SqlString(SqlDateTime x) { 590public static explicit operator SqlString(SqlGuid x) { 597public SqlString Clone() { 601SqlString ret = new SqlString(m_value, m_lcid, m_flag); 610public static SqlBoolean operator==(SqlString x, SqlString y) { 617public static SqlBoolean operator!=(SqlString x, SqlString y) { 624public static SqlBoolean operator<(SqlString x, SqlString y) { 631public static SqlBoolean operator>(SqlString x, SqlString y) { 638public static SqlBoolean operator<=(SqlString x, SqlString y) { 645public static SqlBoolean operator>=(SqlString x, SqlString y) { 654public static SqlString Concat(SqlString x, SqlString y) { 658public static SqlString Add(SqlString x, SqlString y) { 663public static SqlBoolean Equals(SqlString x, SqlString y) { 668public static SqlBoolean NotEquals(SqlString x, SqlString y) { 673public static SqlBoolean LessThan(SqlString x, SqlString y) { 678public static SqlBoolean GreaterThan(SqlString x, SqlString y) { 683public static SqlBoolean LessThanOrEqual(SqlString x, SqlString y) { 688public static SqlBoolean GreaterThanOrEqual(SqlString x, SqlString y) { 801private static int CompareBinary(SqlString x, SqlString y) { 849private static int CompareBinary2(SqlString x, SqlString y) { 916if (value is SqlString) { 917SqlString i = (SqlString)value; 921throw ADP.WrongType(value.GetType(), typeof(SqlString)); 924public int CompareTo(SqlString value) { 951if (!(value is SqlString)) { 955SqlString i = (SqlString)value;
fx\src\data\System\Data\xmlsaver.cs (1)
244if (type == typeof(string) ||type == typeof(SqlGuid) ||type == typeof(SqlString) || type == typeof(SqlChars))