55 references to Original
System.Data (54)
fx\src\data\System\Data\Common\DBCommandBuilder.cs (5)
850
object originalValue = GetColumnValue(dataRow, dataColumn, DataRowVersion.
Original
);
919
value = GetColumnValue(dataRow, sourceColumn, mappings, DataRowVersion.
Original
);
931
DataRowVersion.
Original
,
950
DataRowVersion.
Original
,
973
DataRowVersion.
Original
,
fx\src\data\System\Data\Common\DbDataAdapter.cs (1)
1517
case StatementType.Delete: return DataRowVersion.
Original
; // ignores parameter.SourceVersion
fx\src\data\System\Data\DataRelation.cs (5)
250
Index index = childKey.GetSortIndex((version == DataRowVersion.
Original
) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
263
Index index = parentKey.GetSortIndex((version == DataRowVersion.
Original
) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
268
if (!childRow.HasVersion((version == DataRowVersion.
Original
) ? DataRowVersion.
Original
: DataRowVersion.Current))
277
Index index = parentKey.GetSortIndex((version == DataRowVersion.
Original
) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
fx\src\data\System\Data\DataRow.cs (8)
931
case DataRowVersion.
Original
:
959
return DataRowVersion.
Original
;
965
return DataRowVersion.
Original
;
997
case DataRowVersion.
Original
:
1011
if (!HasVersion(DataRowVersion.
Original
) || !HasVersion(DataRowVersion.Current)) {
1097
value = this[dc, DataRowVersion.
Original
];
1111
value = this[dc, DataRowVersion.
Original
];
1306
if (version == DataRowVersion.
Original
&& oldRecord == newRecord) {
fx\src\data\System\Data\DataRowView.cs (4)
68
/// <remarks>Uses either <see cref="DataRowVersion.Default"/> or <see cref="DataRowVersion.
Original
"/> to access <see cref="Row"/></remarks>
129
/// <returns>Either <see cref="DataRowVersion.Current"/> or <see cref="DataRowVersion.
Original
"/></returns>
136
/// <returns>Either <see cref="DataRowVersion.Default"/> or <see cref="DataRowVersion.
Original
"/></returns>
160
if (DataRowVersion.
Original
== RowVersionDefault) {
fx\src\data\System\Data\DataTable.cs (16)
3564
if (version != DataRowVersion.
Original
) {
4582
if ((dataRow[dc, DataRowVersion.Current] != dc[recordNo]) ||(dataRow[dc, DataRowVersion.
Original
] != dc[recordNo]))
4590
if (dataRow[dc, DataRowVersion.
Original
] != dc[recordNo])
6175
EvaluateDependentExpressions(dependentColumns, row, DataRowVersion.
Original
, null);
6194
EvaluateDependentExpressions(dependentColumns, row, DataRowVersion.
Original
, cachedRows);
6211
EvaluateDependentExpressions(dependentColumns, tableRow, DataRowVersion.
Original
, null);
6243
relatedRow.Table.EvaluateDependentExpressions(relatedRow.Table.dependentColumns, relatedRow, DataRowVersion.
Original
, null);
6282
column[row.oldRecord] = column.DataExpression.Evaluate(row, DataRowVersion.
Original
);
6330
else if (expressionVersion == DataRowVersion.
Original
&& (dr.oldRecord == -1 || dr.oldRecord == dr.newRecord)) {
6344
else if (version == DataRowVersion.
Original
&& (row.oldRecord == -1 || row.oldRecord == row.newRecord)) {
6365
if (foreignVer == DataRowVersion.
Original
&& cachedRow.newRecord == cachedRow.oldRecord)
6367
if (cachedRow != null && ((cachedRow.RowState != DataRowState.Deleted) && (version != DataRowVersion.
Original
|| cachedRow.oldRecord != -1))) {// if deleted GetRecordFromVersion will throw
6383
if (foreignVer == DataRowVersion.
Original
&& parentRow.newRecord == parentRow.oldRecord)
6385
if (parentRow != null && ((parentRow.RowState != DataRowState.Deleted) && (version != DataRowVersion.
Original
|| parentRow.oldRecord != -1))) {// if deleted GetRecordFromVersion will throw
6400
if (foreignVer == DataRowVersion.
Original
&& childRow.newRecord == childRow.oldRecord)
6402
if (childRow != null && ((childRow.RowState != DataRowState.Deleted) && (version != DataRowVersion.
Original
|| childRow.oldRecord != -1))) { // if deleted GetRecordFromVersion will throw
fx\src\data\System\Data\Filter\AggregateNode.cs (3)
184
Debug.Assert(DataRowVersion.
Original
== version, "wrong version");
185
version = DataRowVersion.
Original
;
190
if (version == DataRowVersion.
Original
&& rows[i].oldRecord == -1) {
fx\src\data\System\Data\Filter\DataExpression.cs (1)
155
if (version == DataRowVersion.
Original
&& row.oldRecord == -1)
fx\src\data\System\Data\ForeignKeyConstraint.cs (2)
240
object[] key = row.GetKeyValues(parentKey, row.RowState == DataRowState.Deleted ? DataRowVersion.
Original
: DataRowVersion.Default );
507
DataRowVersion version = (action == DataRowAction.Rollback) ? DataRowVersion.
Original
: DataRowVersion.Current;
fx\src\Data\System\Data\ProviderBase\DbParameterHelper.cs (1)
184
case DataRowVersion.
Original
:
fx\src\data\System\Data\Select.cs (2)
507
version = DataRowVersion.
Original
;
609
version = DataRowVersion.
Original
;
fx\src\data\System\Data\Selection.cs (1)
229
version = DataRowVersion.
Original
;
fx\src\data\System\Data\xmlsaver.cs (4)
2169
DataRow parentRow = row.GetNestedParentRow(DataRowVersion.
Original
);
2179
object val = (table.XmlText == null ? DBNull.Value : row[table.XmlText, DataRowVersion.
Original
]);
2196
GenerateColumn(row, row.Table.Columns[colNum], DataRowVersion.
Original
);
2201
GenerateColumn(row, row.Table.Columns[colNum], DataRowVersion.
Original
);
fx\src\data\System\NewXml\XmlDataDocument.cs (1)
1898
nRec1 = row.GetRecordFromVersion(DataRowVersion.
Original
);
System.Data.Entity (1)
System\Data\EntityClient\DbParameterHelper.cs (1)
172
case DataRowVersion.
Original
: