78 references to Variant
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (1)
564
parameters.Add(new SqlParameter() { SqlDbType = SqlDbType.
Variant
, ParameterName = argumentName, Value = propertyValue.Value ?? DBNull.Value });
System.Data (71)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
333
case SqlDbType.
Variant
:
783
case SqlDbType.
Variant
:
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (3)
121
internal static readonly SmiMetaData DefaultVariant = new SmiMetaData(SqlDbType.
Variant
, 8016, 0, 0, SqlCompareOptions.None); // SqlDbType.Variant
359
case SqlDbType.
Variant
:
467
case SqlDbType.
Variant
:
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (26)
724
if ((!isDbNull) && (metaData.SqlDbType == SqlDbType.
Variant
)) {
728
if ((metaData.SqlDbType != SqlDbType.
Variant
) && (!CanAccessGetterDirectly(metaData, ExtendedClrTypeCode.Stream))) {
751
if ((!isDbNull) && (metaData.SqlDbType == SqlDbType.
Variant
)) {
755
if ((metaData.SqlDbType != SqlDbType.
Variant
) && (!CanAccessGetterDirectly(metaData, ExtendedClrTypeCode.TextReader))) {
808
case SqlDbType.
Variant
: // Handle variants specifically for v200, since they could contain v200 types
811
Debug.Assert(SqlDbType.
Variant
!= metaData.SqlDbType, "Variant-within-variant causes endless recursion!");
916
case SqlDbType.
Variant
:
919
Debug.Assert( SqlDbType.
Variant
!= metaData.SqlDbType, "Variant-within-variant causes endless recursion!" );
951
case SqlDbType.
Variant
: // Handle variants specifically for v200, since they could contain v200 types
954
Debug.Assert(SqlDbType.
Variant
!= metaData.SqlDbType, "Variant-within-variant causes endless recursion!");
1064
case SqlDbType.
Variant
:
1067
Debug.Assert( SqlDbType.
Variant
!= metaData.SqlDbType, "Variant-within-variant causes endless recursion!" );
1225
case SqlDbType.
Variant
:
1229
Debug.Assert( SqlDbType.
Variant
!= metaData.SqlDbType, "Variant-within-variant not supposed to be possible!" );
1264
case SqlDbType.
Variant
: // Handle variants specifically for v200, since they could contain v200 types
1268
Debug.Assert( SqlDbType.
Variant
!= metaData.SqlDbType, "Variant-within-variant not supposed to be possible!" );
1818
case SqlDbType.
Variant
:
1959
case SqlDbType.
Variant
: { // block to scope sqlReader local and avoid conflicts
2138
case SqlDbType.
Variant
:
2261
case SqlDbType.
Variant
:
2406
if (SqlDbType.Decimal == metaData.SqlDbType || SqlDbType.
Variant
== metaData.SqlDbType) {
2845
if (SqlDbType.
Variant
== dbType) {
3323
Debug.Assert(SqlDbType.
Variant
== metaData.SqlDbType, "Invalid type. This should be called only when the type is variant.");
3331
Debug.Assert(SqlDbType.
Variant
== metaData.SqlDbType, "Invalid type. This should be called only when the type is variant.");
3553
if ( SqlDbType.
Variant
== metaData.SqlDbType ) {
3579
if (SqlDbType.
Variant
== metaData.SqlDbType) {
fx\src\data\System\Data\Sql\SqlMetaData.cs (4)
197
case SqlDbType.
Variant
:
439
SqlDbType.
Variant
== dbType ||
1189
smd = new SqlMetaData(name, SqlDbType.
Variant
);
1611
new SqlMetaData("sql_variant", SqlDbType.
Variant
,
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (2)
599
if(metadata.type == SqlDbType.
Variant
) {
1978
if (metadata.type != SqlDbType.
Variant
) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (1)
6305
case SqlDbType.
Variant
:
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (4)
1470
if (((!mt.IsBinType) || (mt.SqlDbType == SqlDbType.Timestamp)) && (mt.SqlDbType != SqlDbType.
Variant
)) {
1475
if ((mt.SqlDbType != SqlDbType.
Variant
) && (IsCommandBehavior(CommandBehavior.SequentialAccess))) {
1886
if (((!mt.IsCharType) && (mt.SqlDbType != SqlDbType.
Variant
)) || (mt.SqlDbType == SqlDbType.Xml)) {
1891
if ((mt.SqlDbType != SqlDbType.
Variant
) && (IsCommandBehavior(CommandBehavior.SequentialAccess))) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (3)
571
else if (SqlDbType.
Variant
== colMetaData.SqlDbType) {
860
if ((metaData.SqlDbType != SqlDbType.
Variant
) && (IsCommandBehavior(CommandBehavior.SequentialAccess)) && (!ValueUtilsSmi.IsDBNull(_readerEventSink, _currentColumnValuesV3, ordinal))) {
878
if ((metaData.SqlDbType != SqlDbType.
Variant
) && (IsCommandBehavior(CommandBehavior.SequentialAccess)) && (!ValueUtilsSmi.IsDBNull(_readerEventSink, _currentColumnValuesV3, ordinal))) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (5)
145
((int)type <= (int) SqlDbType.
Variant
));
198
case SqlDbType.
Variant
: return MetaVariant;
536
SqlDbType sqlType = SqlDbType.
Variant
;
605
sqlType = SqlDbType.
Variant
;
806
(255, 255, -1, true, false, false, TdsEnums.SQLVARIANT, TdsEnums.SQLVARIANT, MetaTypeName.VARIANT, typeof(System.Object), typeof(System.Object), SqlDbType.
Variant
, DbType.Object, 0);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (1)
804
if (actualType == SqlDbType.
Variant
) {
fx\src\data\System\Data\SqlClient\TdsEnums.cs (1)
46
public const SqlDbType SmallVarBinary = (SqlDbType) (SqlDbType.
Variant
)+1;
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
4854
case SqlDbType.
Variant
:
8963
case SqlDbType.
Variant
:
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (17)
102
case SqlDbType.
Variant
:
119
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
137
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
182
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
206
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
262
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
329
else if (SqlDbType.
Variant
== _metaData.SqlDbType) {
380
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
393
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
406
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
439
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
452
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
465
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
481
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
534
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
551
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
571
if (SqlDbType.
Variant
== _metaData.SqlDbType) {
System.Data.Entity (1)
System\Data\SqlClient\SqlProviderServices.cs (1)
530
return SqlDbType.
Variant
;
System.Data.Linq (5)
parent\DbmlShared\Mapping.cs (1)
573
case SqlDbType.
Variant
:
SqlClient\SqlTypeSystemProvider.cs (4)
131
case SqlDbType.
Variant
:
480
case SqlDbType.
Variant
:
733
case SqlDbType.
Variant
: return 28;
793
case SqlDbType.
Variant
: