7 instantiations of SqlBuffer
System.Data (7)
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (2)
786buffers[i] = new SqlBuffer(); 794copy[i] = new SqlBuffer(values[i]);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
5187SqlBuffer buffer = new SqlBuffer(); 5202SqlBuffer buff = new SqlBuffer(); 5296SqlBuffer buffer = new SqlBuffer();
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
4718SqlBuffer data = new SqlBuffer();
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (1)
1076value = new SqlBuffer();
140 references to SqlBuffer
System.Data (140)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (52)
1127internal static SqlBuffer.StorageType SqlDbTypeToStorageType(SqlDbType dbType) { 1133private static void GetNullOutputParameterSmi(SmiMetaData metaData, SqlBuffer targetBuffer, ref object result) { 1138SqlBuffer.StorageType stype = SqlDbTypeToStorageType(metaData.SqlDbType); 1139if ( SqlBuffer.StorageType.Empty == stype ) { 1142else if (SqlBuffer.StorageType.SqlBinary == stype) { 1146else if (SqlBuffer.StorageType.SqlGuid == stype) { 1163SqlBuffer targetBuffer // destination 1255SqlBuffer targetBuffer // destination 1292private static SqlBuffer.StorageType[] __dbTypeToStorageType = new SqlBuffer.StorageType[] { 1293SqlBuffer.StorageType.Int64, // BigInt 1294SqlBuffer.StorageType.SqlBinary, // Binary 1295SqlBuffer.StorageType.Boolean, // Bit 1296SqlBuffer.StorageType.String, // Char 1297SqlBuffer.StorageType.DateTime, // DateTime 1298SqlBuffer.StorageType.Decimal, // Decimal 1299SqlBuffer.StorageType.Double, // Float 1300SqlBuffer.StorageType.SqlBinary, // Image 1301SqlBuffer.StorageType.Int32, // Int 1302SqlBuffer.StorageType.Money, // Money 1303SqlBuffer.StorageType.String, // NChar 1304SqlBuffer.StorageType.String, // NText 1305SqlBuffer.StorageType.String, // NVarChar 1306SqlBuffer.StorageType.Single, // Real 1307SqlBuffer.StorageType.SqlGuid, // UniqueIdentifier 1308SqlBuffer.StorageType.DateTime, // SmallDateTime 1309SqlBuffer.StorageType.Int16, // SmallInt 1310SqlBuffer.StorageType.Money, // SmallMoney 1311SqlBuffer.StorageType.String, // Text 1312SqlBuffer.StorageType.SqlBinary, // Timestamp 1313SqlBuffer.StorageType.Byte, // TinyInt 1314SqlBuffer.StorageType.SqlBinary, // VarBinary 1315SqlBuffer.StorageType.String, // VarChar 1316SqlBuffer.StorageType.Empty, // Variant 1317SqlBuffer.StorageType.Empty, // 24 1318SqlBuffer.StorageType.SqlXml, // Xml 1319SqlBuffer.StorageType.Empty, // 26 1320SqlBuffer.StorageType.Empty, // 27 1321SqlBuffer.StorageType.Empty, // 28 1322SqlBuffer.StorageType.Empty, // Udt 1323SqlBuffer.StorageType.Empty, // Structured 1324SqlBuffer.StorageType.Date, // Date 1325SqlBuffer.StorageType.Time, // Time 1326SqlBuffer.StorageType.DateTime2, // DateTime2 1327SqlBuffer.StorageType.DateTimeOffset, // DateTimeOffset 1653SqlBuffer.StorageType storageType 1664if (storageType == SqlBuffer.StorageType.DateTime2) 1666else if (storageType == SqlBuffer.StorageType.Date) 1962SqlBuffer.StorageType storageType = SqlBuffer.StorageType.Empty; 1976if ((storageType == SqlBuffer.StorageType.DateTime2) || (storageType == SqlBuffer.StorageType.Date))
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (41)
109private SqlBuffer(SqlBuffer value) { // Clone 741case SqlBuffer.StorageType.Empty: return null; 742case SqlBuffer.StorageType.Boolean: return typeof(SqlBoolean); 743case SqlBuffer.StorageType.Byte: return typeof(SqlByte); 744case SqlBuffer.StorageType.DateTime: return typeof(SqlDateTime); 745case SqlBuffer.StorageType.Decimal: return typeof(SqlDecimal); 746case SqlBuffer.StorageType.Double: return typeof(SqlDouble); 747case SqlBuffer.StorageType.Int16: return typeof(SqlInt16); 748case SqlBuffer.StorageType.Int32: return typeof(SqlInt32); 749case SqlBuffer.StorageType.Int64: return typeof(SqlInt64); 750case SqlBuffer.StorageType.Money: return typeof(SqlMoney); 751case SqlBuffer.StorageType.Single: return typeof(SqlSingle); 752case SqlBuffer.StorageType.String: return typeof(SqlString); 753case SqlBuffer.StorageType.SqlCachedBuffer: return typeof(SqlString); 754case SqlBuffer.StorageType.SqlBinary: return typeof(object); 755case SqlBuffer.StorageType.SqlGuid: return typeof(object); 756case SqlBuffer.StorageType.SqlXml: return typeof(SqlXml); 761case SqlBuffer.StorageType.Empty: return null; 762case SqlBuffer.StorageType.Boolean: return typeof(Boolean); 763case SqlBuffer.StorageType.Byte: return typeof(Byte); 764case SqlBuffer.StorageType.DateTime: return typeof(DateTime); 765case SqlBuffer.StorageType.Decimal: return typeof(Decimal); 766case SqlBuffer.StorageType.Double: return typeof(Double); 767case SqlBuffer.StorageType.Int16: return typeof(Int16); 768case SqlBuffer.StorageType.Int32: return typeof(Int32); 769case SqlBuffer.StorageType.Int64: return typeof(Int64); 770case SqlBuffer.StorageType.Money: return typeof(Decimal); 771case SqlBuffer.StorageType.Single: return typeof(Single); 772case SqlBuffer.StorageType.String: return typeof(String); 773case SqlBuffer.StorageType.SqlBinary: return typeof(Byte[]); 774case SqlBuffer.StorageType.SqlCachedBuffer: return typeof(string); 775case SqlBuffer.StorageType.SqlGuid: return typeof(Guid); 776case SqlBuffer.StorageType.SqlXml: return typeof(string); 783internal static SqlBuffer[] CreateBufferArray(int length) { 784SqlBuffer[] buffers = new SqlBuffer[length]; 791internal static SqlBuffer[] CloneBufferArray(SqlBuffer[] values) { 792SqlBuffer[] copy = new SqlBuffer[values.Length]; 799internal static void Clear(SqlBuffer[] values) {
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (4)
1985SqlBuffer.StorageType variantInternalType = SqlBuffer.StorageType.Empty; 1990if (variantInternalType == SqlBuffer.StorageType.DateTime2) { 1993else if (variantInternalType == SqlBuffer.StorageType.Date) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
5187SqlBuffer buffer = new SqlBuffer(); 5202SqlBuffer buff = new SqlBuffer(); 5296SqlBuffer buffer = new SqlBuffer();
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (9)
65private SqlBuffer[] _data; // row buffer, filled in by ReadColumnData() 1215virtual internal SqlBuffer.StorageType GetVariantInternalStorageType(int i) { 2428private object GetSqlValueFromSqlBufferInternal(SqlBuffer data, _SqlMetaData metaData) { 2581private object GetValueFromSqlBufferInternal(SqlBuffer data, _SqlMetaData metaData) { 2632private T GetFieldValueFromSqlBufferInternal<T>(SqlBuffer data, _SqlMetaData metaData) { 3162SqlBuffer.Clear(_data); 3237SqlBuffer.Clear(_data); 3739_data = SqlBuffer.CreateBufferArray(metaDataSet.Length); 3760_data = SqlBuffer.CreateBufferArray(metaData.Length);
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (3)
144override internal SqlBuffer.StorageType GetVariantInternalStorageType(int ordinal) { 147return SqlBuffer.StorageType.Empty; 151return SqlBuffer.StorageType.Empty;
fx\src\data\System\Data\SqlClient\SqlParameter.cs (2)
79private SqlBuffer _sqlBufferReturnValue; 1461internal void SetSqlBuffer (SqlBuffer buff){
fx\src\data\System\Data\SqlClient\TdsParser.cs (25)
4718SqlBuffer data = new SqlBuffer(); 4779SqlBuffer nullVal, 4793nullVal.SetToNullOfType(SqlBuffer.StorageType.Single); 4797nullVal.SetToNullOfType(SqlBuffer.StorageType.Double); 4812nullVal.SetToNullOfType(SqlBuffer.StorageType.Boolean); 4816nullVal.SetToNullOfType(SqlBuffer.StorageType.Byte); 4820nullVal.SetToNullOfType(SqlBuffer.StorageType.Int16); 4824nullVal.SetToNullOfType(SqlBuffer.StorageType.Int32); 4828nullVal.SetToNullOfType(SqlBuffer.StorageType.Int64); 4837nullVal.SetToNullOfType(SqlBuffer.StorageType.String); 4841nullVal.SetToNullOfType(SqlBuffer.StorageType.Decimal); 4846nullVal.SetToNullOfType(SqlBuffer.StorageType.DateTime); 4851nullVal.SetToNullOfType(SqlBuffer.StorageType.Money); 4856nullVal.SetToNullOfType(SqlBuffer.StorageType.Empty); 4864nullVal.SetToNullOfType(SqlBuffer.StorageType.Date); 4868nullVal.SetToNullOfType(SqlBuffer.StorageType.Time); 4872nullVal.SetToNullOfType(SqlBuffer.StorageType.DateTime2); 4876nullVal.SetToNullOfType(SqlBuffer.StorageType.DateTimeOffset); 4978private bool TryReadSqlStringValue(SqlBuffer value, byte type, int length, Encoding encoding, bool isPlp, TdsParserStateObject stateObj) { 5039internal bool DeserializeUnencryptedValue (SqlBuffer value, byte[] unencryptedBytes, SqlMetaDataPriv md, TdsParserStateObject stateObj, byte normalizationVersion) { 5293internal bool TryReadSqlValue(SqlBuffer value, 5410private bool TryReadSqlDateTime(SqlBuffer value, byte tdsType, int length, byte scale, TdsParserStateObject stateObj) { 5446internal bool TryReadSqlValueInternal(SqlBuffer value, byte tdsType, int length, TdsParserStateObject stateObj) { 5652internal bool TryReadSqlVariant(SqlBuffer value, int lenTotal, TdsParserStateObject stateObj) { 6336private bool TryReadSqlDecimal(SqlBuffer value, int length, byte precision, byte scale, TdsParserStateObject stateObj) {
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (1)
1073internal readonly SqlBuffer value;