334 references to DataRowVersion
System.Data (319)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
505
static internal ArgumentOutOfRangeException InvalidDataRowVersion(
DataRowVersion
value) {
516
return InvalidEnumerationValue(typeof(
DataRowVersion
), (int) value);
fx\src\data\System\Data\Common\DBCommandBuilder.cs (13)
760
currentValue = GetColumnValue(dataRow, dataColumn,
DataRowVersion
.Current);
777
DataRowVersion
.Current,
847
currentValue = GetColumnValue(dataRow, dataColumn,
DataRowVersion
.Current);
850
object originalValue = GetColumnValue(dataRow, dataColumn,
DataRowVersion
.Original);
869
DataRowVersion
.Current,
919
value = GetColumnValue(dataRow, sourceColumn, mappings,
DataRowVersion
.Original);
931
DataRowVersion
.Original,
950
DataRowVersion
.Original,
973
DataRowVersion
.Original,
1013
DataRowVersion
version,
1060
DataRowVersion
version,
1219
private object GetColumnValue(DataRow row, String columnName, DataTableMapping mappings,
DataRowVersion
version) {
1223
private object GetColumnValue(DataRow row, DataColumn column,
DataRowVersion
version) {
fx\src\data\System\Data\Common\DbDataAdapter.cs (4)
640
DataRowVersion
version = DbDataAdapter.GetParameterSourceVersion(typeIndex, parameter);
1513
static private
DataRowVersion
GetParameterSourceVersion(StatementType statementType, IDataParameter parameter) {
1515
case StatementType.Insert: return
DataRowVersion
.Current; // ignores parameter.SourceVersion
1517
case StatementType.Delete: return
DataRowVersion
.Original; // ignores parameter.SourceVersion
fx\src\data\System\Data\Common\DBParameter.cs (3)
134
DefaultValue(
DataRowVersion
.Current),
138
virtual public
DataRowVersion
SourceVersion {
139
get { return
DataRowVersion
.Default; }
fx\src\data\System\Data\Common\DBSchemaRow.cs (18)
60
object value = dataRow[schemaTable.ColumnName,
DataRowVersion
.Default];
87
object value = dataRow[schemaTable.Size,
DataRowVersion
.Default];
102
object value = dataRow[schemaTable.BaseColumnName,
DataRowVersion
.Default];
118
object value = dataRow[schemaTable.BaseServerName,
DataRowVersion
.Default];
135
object value = dataRow[schemaTable.BaseCatalogName,
DataRowVersion
.Default];
151
object value = dataRow[schemaTable.BaseSchemaName,
DataRowVersion
.Default];
167
object value = dataRow[schemaTable.BaseTableName,
DataRowVersion
.Default];
183
object value = dataRow[schemaTable.IsAutoIncrement,
DataRowVersion
.Default];
199
object value = dataRow[schemaTable.IsUnique,
DataRowVersion
.Default];
215
object value = dataRow[schemaTable.IsRowVersion,
DataRowVersion
.Default];
231
object value = dataRow[schemaTable.IsKey,
DataRowVersion
.Default];
264
object value = dataRow[schemaTable.IsExpression,
DataRowVersion
.Default];
296
object value = dataRow[schemaTable.IsHidden,
DataRowVersion
.Default];
312
object value = dataRow[schemaTable.IsLong,
DataRowVersion
.Default];
328
object value = dataRow[schemaTable.IsReadOnly,
DataRowVersion
.Default];
344
object value = dataRow[schemaTable.DataType,
DataRowVersion
.Default];
360
object value = dataRow[schemaTable.AllowDBNull,
DataRowVersion
.Default];
391
return (Int32) dataRow[schemaTable.UnsortedIndex,
DataRowVersion
.Default];
fx\src\data\System\Data\DataColumn.cs (3)
484
internal string GetColumnValueAsString(DataRow row,
DataRowVersion
version) {
1374
if (dr.HasVersion(
DataRowVersion
.Current)) {
1633
if (dr.HasVersion(
DataRowVersion
.Current)) {
fx\src\data\System\Data\DataRelation.cs (9)
244
internal static DataRow[] GetChildRows(DataKey parentKey, DataKey childKey, DataRow parentRow,
DataRowVersion
version) {
250
Index index = childKey.GetSortIndex((version ==
DataRowVersion
.Original) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
257
internal static DataRow[] GetParentRows(DataKey parentKey, DataKey childKey, DataRow childRow,
DataRowVersion
version) {
263
Index index = parentKey.GetSortIndex((version ==
DataRowVersion
.Original) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
267
internal static DataRow GetParentRow(DataKey parentKey, DataKey childKey, DataRow childRow,
DataRowVersion
version) {
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 (58)
197
VerifyValueFromStorage(column,
DataRowVersion
.Default, column[record]);
252
VerifyValueFromStorage(column,
DataRowVersion
.Default, column[record]);
270
VerifyValueFromStorage(column,
DataRowVersion
.Default, column[record]);
345
public object this[int columnIndex,
DataRowVersion
version] {
359
public object this[string columnName,
DataRowVersion
version] {
372
public object this[DataColumn column,
DataRowVersion
version] {
393
VerifyValueFromStorage(column,
DataRowVersion
.Default, column[record]);
740
return GetChildRows(_table.ChildRelations[relationName],
DataRowVersion
.Default);
743
public DataRow[] GetChildRows(string relationName,
DataRowVersion
version) {
753
return GetChildRows(relation,
DataRowVersion
.Default);
757
/// <para>Gets the child rows of this <see cref='System.Data.DataRow'/> using the specified <see cref='System.Data.DataRelation'/> and the specified <see cref='System.Data.
DataRowVersion
'/></para>
759
public DataRow[] GetChildRows(DataRelation relation,
DataRowVersion
version) {
782
return GetParentRow(_table.ParentRelations[relationName],
DataRowVersion
.Default);
785
public DataRow GetParentRow(string relationName,
DataRowVersion
version) {
793
return GetParentRow(relation,
DataRowVersion
.Default);
798
/// using the specified <see cref='System.Data.DataRelation'/> and <see cref='System.Data.
DataRowVersion
'/>.</para>
800
public DataRow GetParentRow(DataRelation relation,
DataRowVersion
version) {
817
internal DataRow GetNestedParentRow(
DataRowVersion
version) {
839
return GetParentRows(_table.ParentRelations[relationName],
DataRowVersion
.Default);
845
public DataRow[] GetParentRows(string relationName,
DataRowVersion
version) {
855
return GetParentRows(relation,
DataRowVersion
.Default);
863
public DataRow[] GetParentRows(DataRelation relation,
DataRowVersion
version) {
880
return GetColumnValues(columns,
DataRowVersion
.Default);
883
internal object[] GetColumnValues(DataColumn[] columns,
DataRowVersion
version) {
893
internal object[] GetKeyValues(DataKey key,
DataRowVersion
version) {
929
internal int GetRecordFromVersion(
DataRowVersion
version) {
931
case
DataRowVersion
.Original:
933
case
DataRowVersion
.Current:
935
case
DataRowVersion
.Proposed:
937
case
DataRowVersion
.Default:
944
internal
DataRowVersion
GetDefaultRowVersion(DataViewRowState viewState) {
948
return
DataRowVersion
.Default;
951
return
DataRowVersion
.Default;
955
return
DataRowVersion
.Default;
959
return
DataRowVersion
.Original;
962
return
DataRowVersion
.Default;
965
return
DataRowVersion
.Original;
981
return HasKeyChanged(key,
DataRowVersion
.Current,
DataRowVersion
.Proposed);
984
internal bool HasKeyChanged(DataKey key,
DataRowVersion
version1,
DataRowVersion
version2) {
995
public bool HasVersion(
DataRowVersion
version) {
997
case
DataRowVersion
.Original:
999
case
DataRowVersion
.Current:
1001
case
DataRowVersion
.Proposed:
1003
case
DataRowVersion
.Default:
1011
if (!HasVersion(
DataRowVersion
.Original) || !HasVersion(
DataRowVersion
.Current)) {
1023
return HaveValuesChanged(columns,
DataRowVersion
.Current,
DataRowVersion
.Proposed);
1026
internal bool HaveValuesChanged(DataColumn[] columns,
DataRowVersion
version1,
DataRowVersion
version2) {
1073
public bool IsNull(DataColumn column,
DataRowVersion
version) {
1097
value = this[dc,
DataRowVersion
.Original];
1111
value = this[dc,
DataRowVersion
.Original];
1300
private void VerifyValueFromStorage(DataColumn column,
DataRowVersion
version, object valueFromStorage) {
1306
if (version ==
DataRowVersion
.Original && oldRecord == newRecord) {
1307
version =
DataRowVersion
.Current;
fx\src\data\System\Data\DataRowView.cs (11)
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>
130
public
DataRowVersion
RowVersion {
132
return (RowVersionDefault & ~
DataRowVersion
.Proposed);
136
/// <returns>Either <see cref="
DataRowVersion
.Default"/> or <see cref="
DataRowVersion
.Original"/></returns>
137
private
DataRowVersion
RowVersionDefault {
160
if (
DataRowVersion
.Original == RowVersionDefault) {
248
Row.HasVersion(
DataRowVersion
.Proposed) || // It was edited or
fx\src\data\System\Data\DataSet.cs (1)
1338
DataRow[] relatedRows = row.GetParentRows(relations[relatedIndex],
DataRowVersion
.Current);
fx\src\data\System\Data\DataTable.cs (38)
3497
internal int[] RemoveRecordFromIndexes(DataRow row,
DataRowVersion
version) {
3525
internal int[] InsertRecordToIndexes(DataRow row,
DataRowVersion
version) {
3545
internal void SilentlySetValue(DataRow dr, DataColumn dc,
DataRowVersion
version, object newValue) {
3564
if (version !=
DataRowVersion
.Original) {
4582
if ((dataRow[dc,
DataRowVersion
.Current] != dc[recordNo]) ||(dataRow[dc,
DataRowVersion
.Original] != dc[recordNo]))
4586
if (dataRow[dc,
DataRowVersion
.Current] != dc[recordNo])
4590
if (dataRow[dc,
DataRowVersion
.Original] != dc[recordNo])
6175
EvaluateDependentExpressions(dependentColumns, row,
DataRowVersion
.Original, null);
6178
EvaluateDependentExpressions(dependentColumns, row,
DataRowVersion
.Current, null);
6181
EvaluateDependentExpressions(dependentColumns, row,
DataRowVersion
.Proposed, null);
6194
EvaluateDependentExpressions(dependentColumns, row,
DataRowVersion
.Original, cachedRows);
6197
EvaluateDependentExpressions(dependentColumns, row,
DataRowVersion
.Current, cachedRows);
6200
EvaluateDependentExpressions(dependentColumns, row,
DataRowVersion
.Proposed, cachedRows);
6211
EvaluateDependentExpressions(dependentColumns, tableRow,
DataRowVersion
.Original, null);
6220
EvaluateDependentExpressions(dependentColumns, tableRow,
DataRowVersion
.Proposed, null);
6233
EvaluateDependentExpressions(dependentColumns, tableRow,
DataRowVersion
.Current, null);
6243
relatedRow.Table.EvaluateDependentExpressions(relatedRow.Table.dependentColumns, relatedRow,
DataRowVersion
.Original, null);
6246
relatedRow.Table.EvaluateDependentExpressions(relatedRow.Table.dependentColumns, relatedRow,
DataRowVersion
.Current, null);
6249
relatedRow.Table.EvaluateDependentExpressions(relatedRow.Table.dependentColumns, relatedRow,
DataRowVersion
.Proposed, null);
6282
column[row.oldRecord] = column.DataExpression.Evaluate(row,
DataRowVersion
.Original);
6285
column[row.newRecord] = column.DataExpression.Evaluate(row,
DataRowVersion
.Current);
6288
column[row.tempRecord] = column.DataExpression.Evaluate(row,
DataRowVersion
.Proposed);
6309
internal void EvaluateDependentExpressions(List<DataColumn> columns, DataRow row,
DataRowVersion
version, List<DataRow> cachedRows) {
6319
DataRowVersion
expressionVersion = (version ==
DataRowVersion
.Proposed) ?
DataRowVersion
.Default : version;
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)) {
6357
DataRowVersion
foreignVer = (version ==
DataRowVersion
.Proposed) ?
DataRowVersion
.Default : version;
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\DataView.cs (4)
405
bool IFilter.Invoke(DataRow row,
DataRowVersion
version) {
406
Debug.Assert(
DataRowVersion
.Default != version, "not expecting Default");
407
Debug.Assert(
DataRowVersion
.Proposed != version, "not expecting Proposed");
936
return index.GetIndex(rowview.Row.GetRecordFromVersion(rowview.Row.GetDefaultRowVersion(this.RowStateFilter) & ~
DataRowVersion
.Proposed));
fx\src\data\System\Data\Filter\AggregateNode.cs (7)
149
return Eval(null,
DataRowVersion
.Default);
152
internal override object Eval(DataRow row,
DataRowVersion
version) {
173
if (version ==
DataRowVersion
.Proposed) {
174
version =
DataRowVersion
.Default;
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\BinaryNode.cs (6)
38
return Eval(null,
DataRowVersion
.Default);
41
internal override object Eval(DataRow row,
DataRowVersion
version) {
46
return EvalBinaryOp(op, left, right, null,
DataRowVersion
.Default, recordNos);
122
private static object Eval(ExpressionNode expr, DataRow row,
DataRowVersion
version, int[] recordNos) {
237
private object EvalBinaryOp(int op, ExpressionNode left, ExpressionNode right, DataRow row,
DataRowVersion
version, int[] recordNos) {
1218
internal override object Eval(DataRow row,
DataRowVersion
version) {
fx\src\data\System\Data\Filter\ConstNode.cs (1)
75
internal override object Eval(DataRow row,
DataRowVersion
version) {
fx\src\data\System\Data\Filter\DataExpression.cs (6)
103
return Evaluate((DataRow)null,
DataRowVersion
.Default);
106
internal object Evaluate(DataRow row,
DataRowVersion
version) {
142
return Evaluate(rows,
DataRowVersion
.Default);
146
internal object Evaluate(DataRow[] rows,
DataRowVersion
version) {
155
if (version ==
DataRowVersion
.Original && row.oldRecord == -1)
167
public bool Invoke(DataRow row,
DataRowVersion
version) {
fx\src\data\System\Data\Filter\ExpressionNode.cs (1)
46
internal abstract object Eval(DataRow row,
DataRowVersion
version);
fx\src\data\System\Data\Filter\FunctionNode.cs (3)
102
return Eval((DataRow)null,
DataRowVersion
.Default);
105
internal override object Eval(DataRow row,
DataRowVersion
version) {
254
private object EvalFunction(FunctionId id, object[] argumentValues, DataRow row,
DataRowVersion
version) {
fx\src\data\System\Data\Filter\IFilter.cs (1)
22
bool Invoke(DataRow row,
DataRowVersion
version);
fx\src\data\System\Data\Filter\LookupNode.cs (2)
87
internal override object Eval(DataRow row,
DataRowVersion
version) {
95
return parent[column, parent.HasVersion(version) ? version :
DataRowVersion
.Current]; // Microsoft : Bug 76154
fx\src\data\System\Data\Filter\NameNode.cs (1)
83
internal override object Eval(DataRow row,
DataRowVersion
version) {
fx\src\data\System\Data\Filter\UnaryNode.cs (2)
34
return Eval(null,
DataRowVersion
.Default);
37
internal override object Eval(DataRow row,
DataRowVersion
version) {
fx\src\data\System\Data\Filter\ZeroOpNode.cs (1)
45
internal override object Eval(DataRow row,
DataRowVersion
version) {
fx\src\data\System\Data\ForeignKeyConstraint.cs (13)
240
object[] key = row.GetKeyValues(parentKey, row.RowState == DataRowState.Deleted ?
DataRowVersion
.Original :
DataRowVersion
.Default );
266
object[] currentKey = row.GetKeyValues(parentKey,
DataRowVersion
.Current);
288
object[] key = row.GetKeyValues(parentKey,
DataRowVersion
.Default);
344
object[] key = row.GetKeyValues(parentKey, row.RowState == DataRowState.Modified ?
DataRowVersion
.Current :
DataRowVersion
.Default );
381
object[] currentKey = row.GetKeyValues(parentKey,
DataRowVersion
.Current);
403
object[] proposedKey = row.GetKeyValues(parentKey,
DataRowVersion
.Proposed);
461
if (DataRelation.GetChildRows(this.ParentKey, this.ChildKey, row,
DataRowVersion
.Default).Length > 0) {
507
DataRowVersion
version = (action == DataRowAction.Rollback) ?
DataRowVersion
.Original :
DataRowVersion
.Current;
514
object[] parentKeyValues = parentRow.GetKeyValues(parentKey, action == DataRowAction.Rollback ? version :
DataRowVersion
.Default);
fx\src\data\System\Data\IDataParameter.cs (1)
38
DataRowVersion
SourceVersion {
fx\src\data\System\Data\Odbc\OdbcParameter.cs (5)
120
DataRowVersion
srcVersion,
140
string sourceColumn,
DataRowVersion
sourceVersion, bool sourceColumnNullMapping,
1037
|| (
DataRowVersion
.Current != p.SourceVersion)) {
1073
typeof(
DataRowVersion
), typeof(object) };
1083
typeof(string), typeof(
DataRowVersion
), typeof(bool),
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (11)
213
if ((null != parameterName) && !dataRow.IsNull(parameterName,
DataRowVersion
.Default)) {
215
parameter.ParameterName = Convert.ToString(dataRow[parameterName,
DataRowVersion
.Default], CultureInfo.InvariantCulture).TrimStart(new char[] { '@', ' ', ':'});
217
if ((null != parameterDirection) && !dataRow.IsNull(parameterDirection,
DataRowVersion
.Default)) {
218
short direction = Convert.ToInt16(dataRow[parameterDirection,
DataRowVersion
.Default], CultureInfo.InvariantCulture);
221
if ((null != dataType) && !dataRow.IsNull(dataType,
DataRowVersion
.Default)) {
223
short wType = Convert.ToInt16(dataRow[dataType,
DataRowVersion
.Default], CultureInfo.InvariantCulture);
226
if ((null != maxLen) && !dataRow.IsNull(maxLen,
DataRowVersion
.Default)) {
227
parameter.Size = Convert.ToInt32(dataRow[maxLen,
DataRowVersion
.Default], CultureInfo.InvariantCulture);
233
if ((null != numericPrecision) && !dataRow.IsNull(numericPrecision,
DataRowVersion
.Default)) {
237
if ((null != numericScale) && !dataRow.IsNull(numericScale,
DataRowVersion
.Default)) {
245
value = dataRow[backendtype,
DataRowVersion
.Default];
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (10)
1863
string name = (string) dataRow[nameColumn,
DataRowVersion
.Default];
1931
bool isPKey = (!dataRow.IsNull(pkeyColumn,
DataRowVersion
.Default) && (bool)dataRow[pkeyColumn,
DataRowVersion
.Default]);
1932
bool isUniq = (!dataRow.IsNull(uniqCOlumn,
DataRowVersion
.Default) && (bool)dataRow[uniqCOlumn,
DataRowVersion
.Default]);
1933
bool nullsVal = (null != nulls) && (dataRow.IsNull(nulls,
DataRowVersion
.Default) || (ODB.DBPROPVAL_IN_ALLOWNULL == Convert.ToInt32(dataRow[nulls,
DataRowVersion
.Default], CultureInfo.InvariantCulture)));
1936
string name = (string) dataRow[nameColumn,
DataRowVersion
.Default];
1946
string indexname = (string) dataRow[indxColumn,
DataRowVersion
.Default];
1970
string indexname = (string) dataRow[indxColumn,
DataRowVersion
.Default];
fx\src\data\System\Data\OleDb\OleDbMetaDataFactory.cs (1)
516
string candidateCollectionName = ((string)row[DbMetaDataColumnNames.CollectionName,
DataRowVersion
.Current]);
fx\src\data\System\Data\OleDb\OleDbParameter.cs (5)
67
string srcColumn,
DataRowVersion
srcVersion,
86
string sourceColumn,
DataRowVersion
sourceVersion, bool sourceColumnNullMapping,
584
|| (
DataRowVersion
.Current != p.SourceVersion)) {
620
typeof(
DataRowVersion
), typeof(object) };
630
typeof(string), typeof(
DataRowVersion
), typeof(bool),
fx\src\data\System\Data\ProviderBase\DbMetaDataFactory.cs (7)
101
newRow[destinationColumns[i]] = row[filteredSourceColumns[i],
DataRowVersion
.Current];
136
String sqlCommand = requestedCollectionRow[populationStringColumn,
DataRowVersion
.Current] as string;
137
int numberOfRestrictions = (int)requestedCollectionRow[numberOfRestrictionsColumn,
DataRowVersion
.Current] ;
138
String collectionName = requestedCollectionRow[collectionNameColumn,
DataRowVersion
.Current] as string;
266
candidateCollectionName = row[collectionNameColumn,
DataRowVersion
.Current] as string;
392
exactCollectionName = requestedCollectionRow[collectionNameColumn,
DataRowVersion
.Current] as string;
405
string populationMechanism = requestedCollectionRow[populationMechanismColumn,
DataRowVersion
.Current] as string;
fx\src\Data\System\Data\ProviderBase\DbParameterHelper.cs (8)
27
private
DataRowVersion
_sourceVersion;
177
override public
DataRowVersion
SourceVersion { // V1.2.3300, XXXParameter V1.0.3300
179
DataRowVersion
sourceVersion = _sourceVersion;
180
return ((0 != sourceVersion) ? sourceVersion :
DataRowVersion
.Current);
184
case
DataRowVersion
.Original:
185
case
DataRowVersion
.Current:
186
case
DataRowVersion
.Proposed:
187
case
DataRowVersion
.Default:
fx\src\data\System\Data\RelatedView.cs (1)
55
public bool Invoke(DataRow row,
DataRowVersion
version) {
fx\src\data\System\Data\Select.cs (11)
505
DataRowVersion
version =
DataRowVersion
.Default;
507
version =
DataRowVersion
.Original;
510
version =
DataRowVersion
.Current;
513
version =
DataRowVersion
.Proposed;
531
private int Eval(BinaryNode expr, DataRow row,
DataRowVersion
version) {
607
DataRowVersion
version =
DataRowVersion
.Default;
609
version =
DataRowVersion
.Original;
612
version =
DataRowVersion
.Current;
615
version =
DataRowVersion
.Proposed;
fx\src\data\System\Data\Selection.cs (5)
227
DataRowVersion
version =
DataRowVersion
.Default;
229
version =
DataRowVersion
.Original;
232
version =
DataRowVersion
.Current;
235
version =
DataRowVersion
.Proposed;
fx\src\data\System\Data\SqlClient\SqlParameter.cs (5)
134
string sourceColumn,
DataRowVersion
sourceVersion,
151
string sourceColumn,
DataRowVersion
sourceVersion, bool sourceColumnNullMapping,
1798
|| (
DataRowVersion
.Current != p.SourceVersion)
1837
typeof(string), typeof(
DataRowVersion
),
1849
typeof(string), typeof(
DataRowVersion
), typeof(bool),
fx\src\data\System\Data\xmlsaver.cs (5)
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);
2206
private void GenerateColumn(DataRow row, DataColumn col,
DataRowVersion
version) {
fx\src\data\System\NewXml\DataPointer.cs (9)
121
DataRowVersion
rowVersion = ( row.RowState == DataRowState.Detached ) ?
DataRowVersion
.Proposed :
DataRowVersion
.Current;
461
DataRowVersion
rowVersion = ( row.RowState == DataRowState.Detached ) ?
DataRowVersion
.Proposed :
DataRowVersion
.Current;
679
DataRowVersion
rowVersion = ( row.RowState == DataRowState.Detached ) ?
DataRowVersion
.Proposed :
DataRowVersion
.Current;
fx\src\data\System\NewXml\XmlDataDocument.cs (9)
612
DataRowVersion
rowVersion = ( row.RowState == DataRowState.Detached ) ?
DataRowVersion
.Proposed :
DataRowVersion
.Current;
1898
nRec1 = row.GetRecordFromVersion(
DataRowVersion
.Original);
1899
nRec2 = row.GetRecordFromVersion(
DataRowVersion
.Current);
1916
nRec1 = row.GetRecordFromVersion(
DataRowVersion
.Proposed );
1917
nRec2 = row.GetRecordFromVersion(
DataRowVersion
.Current );
1919
object proposedValue = row[c,
DataRowVersion
.Proposed];
1920
object currentValue = row[c,
DataRowVersion
.Current];
fx\src\data\System\NewXml\XPathNodePointer.cs (18)
298
DataRowVersion
rowVersion = ( row.RowState == DataRowState.Detached ) ?
DataRowVersion
.Proposed :
DataRowVersion
.Current;
332
DataRowVersion
rowVersion = ( row.RowState == DataRowState.Detached ) ?
DataRowVersion
.Proposed :
DataRowVersion
.Current;
516
DataRowVersion
rowVersion = ( row.RowState == DataRowState.Detached ) ?
DataRowVersion
.Proposed :
DataRowVersion
.Current;
536
DataRowVersion
rowVersion = ( row.RowState == DataRowState.Detached ) ?
DataRowVersion
.Proposed :
DataRowVersion
.Current;
1213
DataRowVersion
rowVersion = ( curRow.RowState == DataRowState.Detached ) ?
DataRowVersion
.Proposed :
DataRowVersion
.Current;
1490
DataRowVersion
rowVersion = ( row.RowState == DataRowState.Detached ) ?
DataRowVersion
.Proposed :
DataRowVersion
.Current;
System.Data.DataSetExtensions (4)
System\Data\DataRowExtensions.cs (3)
96
public static T Field<T>(this DataRow row, int columnIndex,
DataRowVersion
version) {
119
public static T Field<T>(this DataRow row, string columnName,
DataRowVersion
version) {
142
public static T Field<T>(this DataRow row, DataColumn column,
DataRowVersion
version) {
System\Data\DataTableExtensions.cs (1)
187
if (!current.HasVersion(
DataRowVersion
.Proposed))
System.Data.Entity (11)
System\Data\Common\EntityUtil.cs (2)
1596
static internal ArgumentOutOfRangeException InvalidDataRowVersion(
DataRowVersion
value)
1610
return InvalidEnumerationValue(typeof(
DataRowVersion
), (int)value);
System\Data\EntityClient\DbParameterHelper.cs (8)
29
private
DataRowVersion
_sourceVersion;
165
override public
DataRowVersion
SourceVersion {
167
DataRowVersion
sourceVersion = _sourceVersion;
168
return ((0 != sourceVersion) ? sourceVersion :
DataRowVersion
.Current);
172
case
DataRowVersion
.Original:
173
case
DataRowVersion
.Current:
174
case
DataRowVersion
.Proposed:
175
case
DataRowVersion
.Default:
System\Data\EntityClient\EntityParameter.cs (1)
100
DataRowVersion
sourceVersion,