145 references to DataViewRowState
netstandard (1)
netstandard.cs (1)
519[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.DataViewRowState))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
88[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.DataViewRowState))]
System.Data.Common (143)
System\Data\Common\DBSchemaRow.cs (4)
48const DataViewRowState rowStates = DataViewRowState.Unchanged | DataViewRowState.Added | DataViewRowState.ModifiedCurrent;
System\Data\DataColumn.cs (1)
1077_sortIndex = _table!.GetIndex(indexDesc, DataViewRowState.CurrentRows, null);
System\Data\DataKey.cs (2)
207internal Index GetSortIndex() => GetSortIndex(DataViewRowState.CurrentRows); 209internal Index GetSortIndex(DataViewRowState recordStates)
System\Data\DataRelation.cs (6)
227Index index = childKey.GetSortIndex((version == DataRowVersion.Original) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows); 242Index index = parentKey.GetSortIndex((version == DataRowVersion.Original) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows); 262Index index = parentKey.GetSortIndex((version == DataRowVersion.Original) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
System\Data\DataRow.cs (13)
1020internal DataRowVersion GetDefaultRowVersion(DataViewRowState viewState) 1033Debug.Assert(0 != (DataViewRowState.Added & viewState), "not DataViewRowState.Added"); 1038Debug.Assert(_action == DataRowAction.Rollback || 0 != (DataViewRowState.Deleted & viewState), "not DataViewRowState.Deleted"); 1041else if (0 != (DataViewRowState.ModifiedCurrent & viewState)) 1047Debug.Assert(0 != (DataViewRowState.ModifiedOriginal & viewState), "not DataViewRowState.ModifiedOriginal"); 1052internal DataViewRowState GetRecordState(int record) 1056return DataViewRowState.None; 1061return DataViewRowState.Unchanged; 1066return (_newRecord != -1) ? DataViewRowState.ModifiedOriginal : DataViewRowState.Deleted; 1071return (_oldRecord != -1) ? DataViewRowState.ModifiedCurrent : DataViewRowState.Added; 1074return DataViewRowState.None;
System\Data\DataRowView.cs (1)
165childView.SetIndex("", DataViewRowState.CurrentRows, null); // finish construction via RelatedView.SetIndex
System\Data\DataTable.cs (41)
1257view.SetIndex2("", DataViewRowState.CurrentRows, null, true); 2971DataRow[] rows = Select(filter, "", DataViewRowState.CurrentRows); 3177GetIndex(indexDesc, DataViewRowState.CurrentRows, null); 3179internal Index GetIndex(string sort, DataViewRowState recordStates, IFilter? rowFilter) => 3182internal Index GetIndex(IndexField[] indexDesc, DataViewRowState recordStates, IFilter? rowFilter) 3350RecordStateChanged(row._oldRecord, DataViewRowState.None, DataViewRowState.Unchanged); 3354RecordStateChanged(row._oldRecord, DataViewRowState.None, row.GetRecordState(row._oldRecord), 3355row._newRecord, DataViewRowState.None, row.GetRecordState(row._newRecord)); 3810internal void RecordStateChanged(int record, DataViewRowState oldState, DataViewRowState newState) 3832internal void RecordStateChanged(int record1, DataViewRowState oldState1, DataViewRowState newState1, 3833int record2, DataViewRowState oldState2, DataViewRowState newState2) 3876DataViewRowState states = row.GetRecordState(recordNo); 3880if (row.HasVersion(version) && ((states & _indexes[indexCount].RecordStates) != DataViewRowState.None)) 3910DataViewRowState states = row.GetRecordState(recordNo); 3916if ((states & _indexes[indexCount].RecordStates) != DataViewRowState.None) 4007DataViewRowState oldRecordStatePre = row.GetRecordState(oldRecord); 4008DataViewRowState newRecordStatePre = row.GetRecordState(newRecord); 4018RecordStateChanged(oldRecord, oldRecordStatePre, DataViewRowState.None, newRecord, newRecordStatePre, DataViewRowState.None); 4221return new Select(this, "", "", DataViewRowState.CurrentRows).SelectRows(); 4232return new Select(this, filterExpression, "", DataViewRowState.CurrentRows).SelectRows(); 4243return new Select(this, filterExpression, sort, DataViewRowState.CurrentRows).SelectRows(); 4251public DataRow[] Select(string? filterExpression, string? sort, DataViewRowState recordStates) 4404DataViewRowState currentRecordStatePre = row.GetRecordState(currentRecord); 4405DataViewRowState secondRecordStatePre = row.GetRecordState(secondRecord); 4411DataViewRowState currentRecordStatePost = row.GetRecordState(currentRecord); 4412DataViewRowState secondRecordStatePost = row.GetRecordState(secondRecord); 4514DataViewRowState originalRecordStatePre = row.GetRecordState(originalRecord); 4515DataViewRowState proposedRecordStatePre = row.GetRecordState(proposedRecord); 4523DataViewRowState originalRecordStatePost = row.GetRecordState(originalRecord); 4524DataViewRowState proposedRecordStatePost = row.GetRecordState(proposedRecord); 4621_loadIndex = _primaryKey.Key.GetSortIndex(DataViewRowState.OriginalRows); 4757_loadIndexwithCurrentDeleted = _primaryKey.Key.GetSortIndex(DataViewRowState.CurrentRows | DataViewRowState.Deleted); 4768_loadIndexwithOriginalAdded = _primaryKey.Key.GetSortIndex(DataViewRowState.OriginalRows | DataViewRowState.Added); 4799index = _primaryKey.Key.GetSortIndex(DataViewRowState.OriginalRows);
System\Data\DataView.cs (32)
43private DataViewRowState _recordStates = DataViewRowState.CurrentRows; 61private DataViewRowState _delayedRecordStates = (DataViewRowState)(-1); 113SetIndex2("", DataViewRowState.CurrentRows, null, true); 122SetIndex2("", DataViewRowState.CurrentRows, null, true); 130public DataView(DataTable table, string? RowFilter, string? Sort, DataViewRowState RowState) 146if ((((int)RowState) & ((int)~(DataViewRowState.CurrentRows | DataViewRowState.OriginalRows))) != 0) 150else if ((((int)RowState) & ((int)DataViewRowState.ModifiedOriginal)) != 0 && 151(((int)RowState) & ((int)DataViewRowState.ModifiedCurrent)) != 0) 163internal DataView(DataTable table, System.Predicate<DataRow>? predicate, System.Comparison<DataRow>? comparison, DataViewRowState RowState) 179if ((((int)RowState) & ((int)~(DataViewRowState.CurrentRows | DataViewRowState.OriginalRows))) != 0) 183else if ((((int)RowState) & ((int)DataViewRowState.ModifiedOriginal)) != 0 && 184(((int)RowState) & ((int)DataViewRowState.ModifiedCurrent)) != 0) 377[DefaultValue(DataViewRowState.CurrentRows)] 378public DataViewRowState RowStateFilter 390if ((((int)value) & ((int)~(DataViewRowState.CurrentRows | DataViewRowState.OriginalRows))) != 0) 394else if ((((int)value) & ((int)DataViewRowState.ModifiedOriginal)) != 0 && 395(((int)value) & ((int)DataViewRowState.ModifiedCurrent)) != 0) 504SetIndex2("", DataViewRowState.CurrentRows, null, false); 596if (_delayedRecordStates != (DataViewRowState)(-1)) 599_delayedRecordStates = (DataViewRowState)(-1); 1510SetIndex("", DataViewRowState.CurrentRows, null); 1523internal virtual void SetIndex(string newSort, DataViewRowState newRowStates, IFilter? newRowFilter) 1528internal void SetIndex2(string newSort, DataViewRowState newRowStates, IFilter? newRowFilter, bool fireEvent) 1535Debug.Assert((0 == (DataViewRowState.ModifiedCurrent & newRowStates)) || 1536(0 == (DataViewRowState.ModifiedOriginal & newRowStates)), 1588newIndex = new Index(_table, SortComparison, ((DataViewRowState)_recordStates), GetFilter()); 1596newIndex = _table.GetIndex(Sort, ((DataViewRowState)_recordStates), GetFilter());
System\Data\DataViewManager.cs (1)
135_dataViewSettingsCollection[table]!.RowStateFilter = Enum.Parse<DataViewRowState>(r.Value);
System\Data\DataViewSetting.cs (3)
16private DataViewRowState _rowStateFilter = DataViewRowState.CurrentRows; 71public DataViewRowState RowStateFilter
System\Data\ForeignKeyConstraint.cs (4)
232Index childIndex = _childKey.GetSortIndex(row.RowState == DataRowState.Deleted ? DataViewRowState.Deleted : DataViewRowState.CurrentRows); 362Index childIndex = _childKey.GetSortIndex(row.RowState == DataRowState.Deleted ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
System\Data\LinqDataView.cs (3)
64DataViewRowState.CurrentRows) 218internal override void SetIndex(string newSort, DataViewRowState newRowStates, IFilter? newRowFilter) 221if ((base.SortComparison != null || base.RowPredicate != null) && newRowStates != DataViewRowState.CurrentRows)
System\Data\Merger.cs (4)
209ndxSearch = dst._primaryKey.Key.GetSortIndex(DataViewRowState.OriginalRows | DataViewRowState.Added); 283ndxSearch = new Index(dst, dst._primaryKey!.Key.GetIndexDesc(), DataViewRowState.OriginalRows | DataViewRowState.Added, null);
System\Data\RelatedView.cs (1)
87internal override void SetIndex(string newSort, DataViewRowState newRowStates, IFilter? newRowFilter)
System\Data\Select.cs (2)
17private readonly DataViewRowState _recordStates; 40public Select(DataTable table, string? filterExpression, string? sort, DataViewRowState recordStates)
System\Data\Selection.cs (25)
70private readonly DataViewRowState _recordStates; 88public Index(DataTable table, IndexField[] indexFields, DataViewRowState recordStates, IFilter? rowFilter) : 93public Index(DataTable table, System.Comparison<DataRow> comparison, DataViewRowState recordStates, IFilter? rowFilter) : 109private Index(DataTable table, IndexField[] indexFields, System.Comparison<DataRow>? comparison, DataViewRowState recordStates, IFilter? rowFilter) 116(~(DataViewRowState.CurrentRows | DataViewRowState.OriginalRows))) != 0) 143public bool Equal(IndexField[] indexDesc, DataViewRowState recordStates, IFilter? rowFilter) 169public DataViewRowState RecordStates => _recordStates; 682private int GetChangeAction(DataViewRowState oldState, DataViewRowState newState) 690private static int GetReplaceAction(DataViewRowState oldState) 692return ((0 != (DataViewRowState.CurrentRows & oldState)) ? ReplaceNewRecordForCompare : // Added/ModifiedCurrent/Unchanged 693((0 != (DataViewRowState.OriginalRows & oldState)) ? ReplaceOldRecordForCompare : // Deleted/ModififedOriginal 717DataViewRowState states = _recordStates; 733if ((states & DataViewRowState.Unchanged) != 0) 740if ((states & DataViewRowState.Added) != 0) 747if ((states & DataViewRowState.Deleted) != 0) 754if ((states & DataViewRowState.ModifiedCurrent) != 0) 758else if ((states & DataViewRowState.ModifiedOriginal) != 0) 928public void RecordStateChanged(int record, DataViewRowState oldState, DataViewRowState newState) 936public void RecordStateChanged(int oldRecord, DataViewRowState oldOldState, DataViewRowState oldNewState, 937int newRecord, DataViewRowState newOldState, DataViewRowState newNewState)