92 references to VarBinary
System.Activities.DurableInstancing (13)
System\Activities\DurableInstancing\CreateWorkflowOwnerAsyncResult.cs (4)
93
parameters.Add(new SqlParameter { ParameterName = "@primitiveLockOwnerData", SqlDbType = SqlDbType.
VarBinary
, Size = properties[0].Count, Value = (object)(properties[0].Array) ?? DBNull.Value });
94
parameters.Add(new SqlParameter { ParameterName = "@complexLockOwnerData", SqlDbType = SqlDbType.
VarBinary
, Size = properties[1].Count, Value = (object)(properties[1].Array) ?? DBNull.Value });
95
parameters.Add(new SqlParameter { ParameterName = "@writeOnlyPrimitiveLockOwnerData", SqlDbType = SqlDbType.
VarBinary
, Size = properties[2].Count, Value = (object)(properties[2].Array) ?? DBNull.Value });
96
parameters.Add(new SqlParameter { ParameterName = "@writeOnlyComplexLockOwnerData", SqlDbType = SqlDbType.
VarBinary
, Size = properties[3].Count, Value = (object)(properties[3].Array) ?? DBNull.Value });
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (1)
73
parameters.Add(new SqlParameter { ParameterName = "@concatenatedKeyProperties", SqlDbType = SqlDbType.
VarBinary
, Value = (object) concatenatedKeyProperties ?? DBNull.Value });
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (8)
194
parameters.Add(new SqlParameter { ParameterName = parameterName, SqlDbType = SqlDbType.
VarBinary
, Size = parameterSize, Value = parameterValue });
483
parameters.Add(new SqlParameter { ParameterName = "@concatenatedKeyProperties", SqlDbType = SqlDbType.
VarBinary
, Value = DBNull.Value });
484
parameters.Add(new SqlParameter { ParameterName = "@primitiveDataProperties", SqlDbType = SqlDbType.
VarBinary
, Value = DBNull.Value });
485
parameters.Add(new SqlParameter { ParameterName = "@complexDataProperties", SqlDbType = SqlDbType.
VarBinary
, Value = DBNull.Value });
486
parameters.Add(new SqlParameter { ParameterName = "@writeOnlyPrimitiveDataProperties", SqlDbType = SqlDbType.
VarBinary
, Value = DBNull.Value });
487
parameters.Add(new SqlParameter { ParameterName = "@writeOnlyComplexDataProperties", SqlDbType = SqlDbType.
VarBinary
, Value = DBNull.Value });
488
parameters.Add(new SqlParameter { ParameterName = "@metadataProperties", SqlDbType = SqlDbType.
VarBinary
, Value = DBNull.Value });
511
parameters.Add(new SqlParameter { ParameterName = "@concatenatedKeyProperties", SqlDbType = SqlDbType.
VarBinary
, Size = -1, Value = (object)concatenatedKeyProperties ?? DBNull.Value });
System.Data (55)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (8)
57
SqlDbType.
VarBinary
, // System.ByteArray
60
SqlDbType.
VarBinary
, // System.Data.SqlTypes.SqlBinary
74
SqlDbType.
VarBinary
, // System.Data.SqlTypes.SqlBytes
159
type == SqlDbType.
VarBinary
||
212
case SqlDbType.
VarBinary
:
612
case SqlDbType.
VarBinary
:
755
colDbType = SqlDbType.
VarBinary
;
789
case SqlDbType.
VarBinary
:
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (3)
119
internal static readonly SmiMetaData DefaultVarBinary = new SmiMetaData(SqlDbType.
VarBinary
, MaxBinaryLength, 0, 0, SqlCompareOptions.None); // SqlDbType.VarBinary
364
case SqlDbType.
VarBinary
:
482
case SqlDbType.
VarBinary
:
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (7)
910
case SqlDbType.
VarBinary
:
1058
case SqlDbType.
VarBinary
:
1178
case SqlDbType.
VarBinary
:
1806
case SqlDbType.
VarBinary
:
1940
case SqlDbType.
VarBinary
:
2126
case SqlDbType.
VarBinary
:
2249
case SqlDbType.
VarBinary
:
fx\src\data\System\Data\Sql\SqlMetaData.cs (12)
177
case SqlDbType.
VarBinary
:
495
else if (SqlDbType.
VarBinary
== dbType) {
913
else if (SqlDbType.
VarBinary
!= SqlDbType &&
1006
else if (SqlDbType.
VarBinary
!= SqlDbType &&
1174
smd = new SqlMetaData(name, SqlDbType.
VarBinary
, maxLen);
1203
maxLen = sxm_rgDefaults[(int)SqlDbType.
VarBinary
].MaxLength;
1205
smd = new SqlMetaData(name, SqlDbType.
VarBinary
, maxLen);
1290
maxLen = sxm_rgDefaults[(int)SqlDbType.
VarBinary
].MaxLength;
1292
smd = new SqlMetaData(name, SqlDbType.
VarBinary
, maxLen);
1340
else if (SqlDbType.
VarBinary
!= SqlDbType &&
1431
md.SqlDbType == SqlDbType.
VarBinary
) {
1607
new SqlMetaData("varbinary", SqlDbType.
VarBinary
,
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (2)
1114
if ((metadata.type == SqlDbType.
VarBinary
) && (mtSource.IsBinType) && (mtSource.SqlDbType != SqlDbType.Timestamp) && _SqlDataReaderRowSource.IsCommandBehavior(CommandBehavior.SequentialAccess)) {
1133
if (metadata.type == SqlDbType.
VarBinary
) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (4)
2836
p.SqlDbType = SqlDbType.
VarBinary
;
2868
p.SqlDbType == SqlDbType.
VarBinary
||
3795
var attestationParametersParam = new SqlParameter(null, SqlDbType.
VarBinary
) {
6283
case SqlDbType.
VarBinary
:
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
2020
p = new SqlParameter(null, SqlDbType.
VarBinary
, (null != data) ? data.Length : 0);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
554
schemaRow[ProviderType] = SqlDbType.
VarBinary
;
fx\src\data\System\Data\SqlClient\SqlEnums.cs (6)
132
type == SqlDbType.
VarBinary
||
196
case SqlDbType.
VarBinary
: return MetaVarBinary;
257
case SqlDbType.
VarBinary
:
602
sqlType = (typeName == MetaTypeName.BINARY) ? SqlDbType.Binary : SqlDbType.
VarBinary
;
725
(255, 255, -1, false, false, false, TdsEnums.SQLBIGVARBINARY, TdsEnums.SQLBIGVARBINARY, MetaTypeName.VARBINARY, typeof(System.Byte[]), typeof(SqlBinary), SqlDbType.
VarBinary
, DbType.Binary, 2);
728
(255, 255, -1, false, true, true, TdsEnums.SQLBIGVARBINARY, TdsEnums.SQLBIGVARBINARY, MetaTypeName.VARBINARY, typeof(System.Byte[]), typeof(SqlBinary), SqlDbType.
VarBinary
, DbType.Binary, 2);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (5)
397
if ( SqlDbType.Binary == mt.SqlDbType || SqlDbType.
VarBinary
== mt.SqlDbType ) {
407
else if (( maxLen > MSS.SmiMetaData.MaxBinaryLength && ( SqlDbType.Binary == mt.SqlDbType || SqlDbType.
VarBinary
== mt.SqlDbType ))
848
case SqlDbType.
VarBinary
:
1583
|| mt.SqlDbType == SqlDbType.
VarBinary
) {
1591
case SqlDbType.
VarBinary
:
fx\src\data\System\Data\SqlClient\TdsParser.cs (5)
4785
if (type == SqlDbType.
VarBinary
&& // if its a varbinary
4802
case SqlDbType.
VarBinary
:
8953
case SqlDbType.
VarBinary
:
9580
((metatype.SqlDbType == SqlDbType.
VarBinary
&& value is StreamDataFeed) ||
9600
case SqlDbType.
VarBinary
:
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (1)
94
case SqlDbType.
VarBinary
:
System.Data.Entity (2)
System\Data\SqlClient\SqlProviderServices.cs (2)
568
type == SqlDbType.Binary || type == SqlDbType.
VarBinary
)
696
return fixedLength ? SqlDbType.Binary : SqlDbType.
VarBinary
;
System.Data.Linq (14)
SqlClient\SqlTypeSystemProvider.cs (14)
108
case SqlDbType.
VarBinary
:
411
case SqlDbType.
VarBinary
:
494
case SqlDbType.
VarBinary
:
554
case SqlDbType.
VarBinary
:
706
case SqlDbType.
VarBinary
: return 1;
777
case SqlDbType.
VarBinary
:
913
case SqlDbType.
VarBinary
:
949
case SqlDbType.
VarBinary
:
1205
case SqlDbType.
VarBinary
:
1449
return GetBestType(SqlDbType.
VarBinary
, size);
1478
case SqlDbType.
VarBinary
:
1479
return Create(SqlDbType.
VarBinary
, LargeTypeSizeIndicator);
1569
return GetBestType(SqlDbType.
VarBinary
, size);
1595
case SqlDbType.
VarBinary
:
System.Web (8)
State\sqlstateclientmanager.cs (8)
1290
p = _cmdTempGet.Parameters.Add(new SqlParameter("@itemShort", SqlDbType.
VarBinary
, ITEM_SHORT_LENGTH));
1303
p = _cmdTempGet.Parameters.Add(new SqlParameter("@itemShort", SqlDbType.
VarBinary
, ITEM_SHORT_LENGTH));
1332
p = _cmdTempGetExclusive.Parameters.Add(new SqlParameter("@itemShort", SqlDbType.
VarBinary
, ITEM_SHORT_LENGTH));
1345
p = _cmdTempGetExclusive.Parameters.Add(new SqlParameter("@itemShort", SqlDbType.
VarBinary
, ITEM_SHORT_LENGTH));
1400
_cmdTempInsertShort.Parameters.Add(new SqlParameter("@itemShort", SqlDbType.
VarBinary
, ITEM_SHORT_LENGTH));
1432
_cmdTempUpdateShort.Parameters.Add(new SqlParameter("@itemShort", SqlDbType.
VarBinary
, ITEM_SHORT_LENGTH));
1449
_cmdTempUpdateShortNullLong.Parameters.Add(new SqlParameter("@itemShort", SqlDbType.
VarBinary
, ITEM_SHORT_LENGTH));
1497
_cmdTempInsertUninitializedItem.Parameters.Add(new SqlParameter("@itemShort", SqlDbType.
VarBinary
, ITEM_SHORT_LENGTH));