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