3 writes to type
System.Data (3)
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
3432
rec.
type
= rec.metaType.SqlDbType;
4159
col.
type
= col.metaType.SqlDbType;
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (1)
859
this.
type
= original.type;
58 references to type
System.Data (58)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (14)
572
if((metadata.
type
== SqlDbType.Timestamp)
599
if(metadata.
type
== SqlDbType.Variant) {
602
else if(metadata.
type
== SqlDbType.Udt) {
607
AppendColumnNameAndTypeName(updateBulkCommandText, metadata.column, typeof(SqlDbType).GetEnumName(metadata.
type
));
665
switch (metadata.
type
) {
903
if ((!isNull) && (metadata.
type
== SqlDbType.Udt)) {
1114
if ((metadata.
type
== SqlDbType.VarBinary) && (mtSource.IsBinType) && (mtSource.SqlDbType != SqlDbType.Timestamp) && _SqlDataReaderRowSource.IsCommandBehavior(CommandBehavior.SequentialAccess)) {
1119
else if (((metadata.
type
== SqlDbType.VarChar) || (metadata.
type
== SqlDbType.NVarChar)) && (mtSource.IsCharType) && (mtSource.SqlDbType != SqlDbType.Xml)) {
1123
else if ((metadata.
type
== SqlDbType.Xml) && (mtSource.SqlDbType == SqlDbType.Xml)) {
1133
if (metadata.
type
== SqlDbType.VarBinary) {
1137
else if ((metadata.
type
== SqlDbType.VarChar) || (metadata.
type
== SqlDbType.NVarChar)) {
1978
if (metadata.
type
!= SqlDbType.Variant) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
5248
MetaType mt = MetaType.GetMetaTypeFromSqlDbType(rec.
type
, rec.isMultiValued);
5250
if (rec.
type
== SqlDbType.Decimal) {
5257
else if (rec.
type
== SqlDbType.Xml) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (25)
294
if (SqlDbType.Xml == colMetaData.
type
) {
299
else if (SqlDbType.Udt == colMetaData.
type
) {
311
else if (SqlDbType.NChar == colMetaData.
type
312
||SqlDbType.NVarChar == colMetaData.
type
) {
317
colMetaData.
type
,
529
schemaRow[NonVersionedProviderType] = (int) (col.cipherMD != null ? col.baseTI.
type
: col.
type
); // SqlDbType enum value - does not change with TypeSystem.
534
switch (col.
type
) {
565
schemaRow[ProviderType] = (int) (col.cipherMD != null ? col.baseTI.
type
: col.
type
);
567
if (col.
type
== SqlDbType.Udt) { // Additional metadata for UDTs.
571
else if (col.
type
== SqlDbType.Xml) { // Additional metadata for Xml.
643
if (SqlDbType.Timestamp == col.
type
) {
1192
if (metaData.
type
== SqlDbType.Udt) {
1258
if (metaData.
type
== SqlDbType.Udt) {
1346
if (metaData.
type
== SqlDbType.Udt) {
1958
sqlDbType = _metaData[i].baseTI.
type
;
1961
sqlDbType = _metaData[i].
type
;
2431
Debug.Assert(!data.IsEmpty || data.IsNull || metaData.
type
== SqlDbType.Timestamp, "Data has been read, but the buffer is empty");
2443
if (metaData.
type
== SqlDbType.Udt) {
2460
if (metaData.
type
== SqlDbType.Xml) {
2584
Debug.Assert(!data.IsEmpty || data.IsNull || metaData.
type
== SqlDbType.Timestamp, "Data has been read, but the buffer is empty");
2600
if (metaData.
type
!= SqlDbType.Udt) {
3455
(_metaData[i].
type
== SqlDbType.Timestamp), // Or Dev11 Bug #336820, Dev10 Bug #479607 (SqlClient: IsDBNull always returns false for timestamp datatype)
3513
if (isNull && columnMetaData.
type
!= SqlDbType.Timestamp /* Maintain behavior for known bug (Dev10 479607) rejected as breaking change - See comments in GetNullSqlValue for timestamp */)
fx\src\data\System\Data\SqlClient\TdsParser.cs (10)
3451
if (rec.
type
== SqlDbType.Decimal) {
3472
if (rec.
type
== SqlDbType.Xml) {
4223
if (col.
type
== SqlDbType.Decimal) {
4783
SqlDbType type = md.
type
;
4788
type = md.baseTI.
type
; // the use the actual (plaintext) type
4885
Debug.Assert(false, "unknown null sqlType!" + md.
type
.ToString());
9223
Debug.Assert(SqlDbType.Xml != mdPriv.
type
);
9224
Debug.Assert(SqlDbType.Udt != mdPriv.
type
);
9228
switch (mdPriv.
type
) {
9329
switch (md.
type
) {
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (6)
526
return SqlDbType.Date ==
type
|| SqlDbType.Time ==
type
|| SqlDbType.DateTime2 ==
type
|| SqlDbType.DateTimeOffset ==
type
;
532
return
type
== SqlDbType.Udt && length == Int32.MaxValue;
859
this.type = original.
type
;