2 writes to _stateObj
System.Data (2)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (2)
2444
_stateObj
= null;
2626
_stateObj
= _parser.GetSession(this);
32 references to _stateObj
System.Data (32)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (32)
508
Task executeTask = _parser.TdsExecuteSQLBatch(TDSCommand, this.BulkCopyTimeout, null,
_stateObj
, sync: !_isAsyncBulkCopy, callerHasConnectionLock: true);
753
Task executeTask = _parser.TdsExecuteSQLBatch(TDSCommand, this.BulkCopyTimeout, null,
_stateObj
, sync: !_isAsyncBulkCopy, callerHasConnectionLock: true);
776
_stateObj
.SetTimeoutSeconds(this.BulkCopyTimeout);
779
_stateObj
._outputMessageType = TdsEnums.MT_BULK;
780
_parser.WriteBulkCopyMetaData(metadataCollection, _sortedColumnMappings.Count,
_stateObj
);
1193
_parser.Run(RunBehavior.UntilDone, null, null, bulkCopyHandler,
_stateObj
);
1207
_parser.RunReliably(RunBehavior.UntilDone, null, null, bulkCopyHandler,
_stateObj
);
1919
TdsParserStateObject stateObj =
_stateObj
;
1971
value = _parser.EncryptColumnValue(value, metadata, metadata.column,
_stateObj
, isDataFeed, isSqlType);
1980
writeTask = _parser.WriteBulkCopyValue(value, metadata,
_stateObj
, isSqlType, isDataFeed, isNull); //returns Task/Null
1991
_parser.WriteSqlVariantDateTime2(((DateTime)value),
_stateObj
);
1994
_parser.WriteSqlVariantDate(((DateTime)value),
_stateObj
);
1997
writeTask = _parser.WriteSqlVariantDataRowValue(value,
_stateObj
); //returns Task/Null
2079
_stateObj
.BcpLock = true;
2098
_stateObj
.BcpLock = false;
2117
Task writeTask = _parser.WriteBulkCopyDone(
_stateObj
); //We should complete the current batch upto this row.
2172
_stateObj
.WriteByte(TdsEnums.SQLROW);
2342
Task writeTask = _parser.WriteBulkCopyDone(
_stateObj
);
2395
if ((cleanupParser) && (_parser != null) && (
_stateObj
!= null)) {
2397
Task task = _parser.WriteBulkCopyDone(
_stateObj
);
2402
if (
_stateObj
!= null) {
2431
if (
_stateObj
!= null) {
2434
_stateObj
.ResetBuffer();
2435
_stateObj
._outputPacketNumber = 1;
2438
_stateObj
.CancelRequest();
2440
_stateObj
._internalTimeout = false;
2441
_stateObj
.CloseSession();
2442
_stateObj
._bulkCopyOpperationInProgress = false;
2443
_stateObj
._bulkCopyWriteTimeout = false;
2465
_stateObj
.SniContext = SniContext.Snix_SendRows;
2627
_stateObj
._bulkCopyOpperationInProgress = true;
2628
_stateObj
.StartSession(ObjectID);