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