fx\src\data\System\Data\Common\DBCommandBuilder.cs (20)
505private void BuildCache(bool closeConnection, DataRow dataRow, bool useColumnsForParameterNames) { // V1.2.3300
703private DbCommand BuildDeleteCommand(DataTableMapping mappings, DataRow dataRow) {
722private DbCommand BuildInsertCommand(DataTableMapping mappings, DataRow dataRow) {
808private DbCommand BuildUpdateCommand(DataTableMapping mappings, DataRow dataRow) {
892DataRow dataRow,
1110private DataTableMapping GetTableMapping(DataRow dataRow ) {
1183return GetInsertCommand((DataRow)null, false);
1187return GetInsertCommand((DataRow)null, useColumnsForParameterNames);
1189internal DbCommand GetInsertCommand(DataRow dataRow, bool useColumnsForParameterNames) {
1196return GetUpdateCommand((DataRow)null, false);
1199return GetUpdateCommand((DataRow)null, useColumnsForParameterNames);
1201internal DbCommand GetUpdateCommand(DataRow dataRow, bool useColumnsForParameterNames) {
1208return GetDeleteCommand((DataRow)null, false);
1211return GetDeleteCommand((DataRow)null, useColumnsForParameterNames);
1213internal DbCommand GetDeleteCommand(DataRow dataRow, bool useColumnsForParameterNames) {
1219private object GetColumnValue(DataRow row, String columnName, DataTableMapping mappings, DataRowVersion version) {
1223private object GetColumnValue(DataRow row, DataColumn column, DataRowVersion version) {
1231private DataColumn GetDataColumn(string columnName, DataTableMapping tablemapping, DataRow row) {
1425DataRow datarow = rowUpdatingEvent.Row;
1460abstract protected void ApplyParameterInfo(DbParameter parameter, DataRow row, StatementType statementType, bool whereClause); // V1.2.3300
fx\src\data\System\Data\Common\DbDataAdapter.cs (24)
34internal DataRow Row; // the row that the command is intended to update
228virtual protected RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) { // V1.0.3300
232virtual protected RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) { // V1.0.3300
628private void ParameterInput(IDataParameterCollection parameters, StatementType typeIndex, DataRow row, DataTableMapping mappings) {
657private void ParameterOutput(IDataParameter parameter, DataRow row, DataTableMapping mappings, MissingMappingAction missingMapping, MissingSchemaAction missingSchema) {
686private void ParameterOutput(IDataParameterCollection parameters, DataRow row, DataTableMapping mappings) {
711public int Update(DataRow[] dataRows) { // V1.0.3300
804virtual protected int Update(DataRow[] dataRows, DataTableMapping tableMapping) { // V1.0.3300
834DataRow[] rowBatch = new DataRow[maxBatchCommands];
847foreach(DataRow dataRow in dataRows) {
1098DataRow[] finalRowBatch = rowBatch;
1101finalRowBatch = new DataRow[commandCount];
1173List<DataRow> rows = null;
1196rows = new List<DataRow>();
1198batchCommands[bc].Errors = ADP.UpdateConcurrencyViolation(batchCommands[bc].StatementType, 0, 1, new DataRow[] { rowUpdatedEvent.Rows[bc] });
1229DataRow[] rowsInError = (null != rows) ? rows.ToArray() : rowUpdatedEvent.Rows;
1259DataRow[] dataRows = ADP.SelectAdapterRows(dataTable, false);
1341rowUpdatedEvent.Errors = ADP.UpdateConcurrencyViolation(cmdIndex, rowUpdatedEvent.RecordsAffected, 1, new DataRow[] { rowUpdatedEvent.Row }); // MDAC 55735
1385DataRow row = batchCommands[i].Row;
1413DataRow row = batchCommands[i].Row;
1427DataRow row = batchCommands[i].Row;
1448DataRow row = batchCommands[i].Row;
1457private void UpdatingRowStatusErrors(RowUpdatingEventArgs rowUpdatedEvent, DataRow dataRow) {
fx\src\data\System\Data\DataRelation.cs (10)
244internal static DataRow[] GetChildRows(DataKey parentKey, DataKey childKey, DataRow parentRow, DataRowVersion version) {
257internal static DataRow[] GetParentRows(DataKey parentKey, DataKey childKey, DataRow childRow, DataRowVersion version) {
267internal static DataRow GetParentRow(DataKey parentKey, DataKey childKey, DataRow childRow, DataRowVersion version) {
299internal void SetParentRowRecords(DataRow childRow, DataRow parentRow) {
504foreach(DataRow row in ChildTable.Rows)
512foreach(DataRow row in ChildTable.Rows)
fx\src\data\System\Data\DataRow.cs (30)
216DataRow parent = this.GetParentRow(rel);
233DataRow row = this.GetParentRow(rel);
487/// since the last time <see cref='System.Data.DataRow.AcceptChanges'/> was called.</para>
516/// <para>Begins an edit operation on a <see cref='System.Data.DataRow'/>object.</para>
702/// Clears the errors for the row, including the <see cref='System.Data.DataRow.RowError'/>
703/// and errors set with <see cref='System.Data.DataRow.SetColumnError(DataColumn, string)'/>
739public DataRow[] GetChildRows(string relationName) {
743public DataRow[] GetChildRows(string relationName, DataRowVersion version) {
748/// <para>Gets the child rows of this <see cref='System.Data.DataRow'/> using the
752public DataRow[] GetChildRows(DataRelation relation) {
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>
759public DataRow[] GetChildRows(DataRelation relation, DataRowVersion version) {
781public DataRow GetParentRow(string relationName) {
785public DataRow GetParentRow(string relationName, DataRowVersion version) {
790/// <para>Gets the parent row of this <see cref='System.Data.DataRow'/> using the specified <see cref='System.Data.DataRelation'/> .</para>
792public DataRow GetParentRow(DataRelation relation) {
797/// <para>Gets the parent row of this <see cref='System.Data.DataRow'/>
800public DataRow GetParentRow(DataRelation relation, DataRowVersion version) {
817internal DataRow GetNestedParentRow(DataRowVersion version) {
825DataRow row = this.GetParentRow(rel, version);
838public DataRow[] GetParentRows(string relationName) {
845public DataRow[] GetParentRows(string relationName, DataRowVersion version) {
851/// Gets the parent rows of this <see cref='System.Data.DataRow'/> using the specified <see cref='System.Data.DataRelation'/> .
854public DataRow[] GetParentRows(DataRelation relation) {
860/// Gets the parent rows of this <see cref='System.Data.DataRow'/> using the specified <see cref='System.Data.DataRelation'/> .
863public DataRow[] GetParentRows(DataRelation relation, DataRowVersion version) {
1081/// Rejects all changes made to the row since <see cref='System.Data.DataRow.AcceptChanges'/>
1159internal void SetNestedParentRow(DataRow parentRow, bool setNonNested) {
1184public void SetParentRow(DataRow parentRow) {
1193public void SetParentRow(DataRow parentRow, DataRelation relation) {
fx\src\data\System\Data\DataTable.cs (122)
45/// Monotonically increasing number representing the order <see cref="DataRow"/> have been added to <see cref="DataRowCollection"/>.
47/// <remarks>This limits <see cref="DataRowCollection.Add(DataRow)"/> to <see cref="Int32.MaxValue"/> operations.</remarks>
104internal readonly static DataRow[] zeroRows = new DataRow[0];
128private DataRow[] EmptyDataRowArray;
635DataRow row = Rows[i];
732DataRow[] rowArr = new DataRow[recordCount];
735DataRow row = NewEmptyRow();
808DataRow row = Rows[rowIndex];
834DataRow row = Rows[rowIndex];
1981internal DataRow FindByIndex(Index ndx, object[] key) {
1989internal DataRow FindMergeTarget(DataRow row, DataKey key, Index ndx) {
1990DataRow targetRow = null;
2002private void SetMergeRecords(DataRow row, int newRecord, int oldRecord, DataRowAction action) {
2016internal DataRow MergeRow(DataRow row, DataRow targetRow, bool preserveChanges, Index idxSearch) {
2116DataRow[] oldRows = new DataRow[Rows.Count];
2320foreach (DataRow row in Rows)
2403/// Occurs when the <see cref='System.Data.DataRow'/> is changing.
2510internal DataRow AddRecords(int oldRecord, int newRecord) {
2511DataRow row;
2527internal void AddRow(DataRow row) {
2531internal void AddRow(DataRow row, int proposedID) {
2535internal void InsertRow(DataRow row, int proposedID, int pos) {
2539internal void InsertRow(DataRow row, long proposedID, int pos, bool fireEvent) {
2600internal void CheckNotModifying(DataRow row) {
2645foreach(DataRow row in Rows) {
2670internal void CascadeAll(DataRow row, DataRowAction action) {
2678internal void CommitRow(DataRow row) {
2731DataRow[] rows = Select(filter, "", DataViewRowState.CurrentRows);
2742internal void CopyRow(DataTable table, DataRow row)
2760DataRow targetRow = table.AddRecords(oldRecord, newRecord);
2776internal void DeleteRow(DataRow row) {
2789internal DataRow FindByPrimaryKey(object[] values) {
2794internal DataRow FindByPrimaryKey(object value) {
2799private DataRow FindRow(DataKey key, object[] values) {
2807private DataRow FindRow(DataKey key, object value) {
2838DataRow row = null;
2862DataRow row = null;
2884/// <para>Returns an array of <see cref='System.Data.DataRow'/> objects that contain errors.</para>
2886public DataRow[] GetErrors() {
2887List<DataRow> errorList = new List<DataRow>();
2890DataRow row = Rows[i];
2895DataRow[] temp = NewRowArray(errorList.Count);
2954public void ImportRow(DataRow row)
2976DataRow targetRow = AddRecords(oldRecord, newRecord);
2996internal void InsertRow(DataRow row, long proposedID) {
3126internal DataRow NewEmptyRow() {
3128DataRow dr = NewRowFromBuilder( rowBuilder );
3135private DataRow NewUninitializedRow() {
3136DataRow dr = NewRow(NewUninitializedRecord());
3141/// <para>Creates a new <see cref='System.Data.DataRow'/>
3144public DataRow NewRow() {
3145DataRow dr = NewRow(-1);
3151internal DataRow CreateEmptyRow() {
3152DataRow row = this.NewUninitializedRow();
3172private void NewRowCreated(DataRow row) {
3179internal DataRow NewRow(int record) {
3185DataRow row = NewRowFromBuilder( rowBuilder );
3195protected virtual DataRow NewRowFromBuilder(DataRowBuilder builder) {
3203return typeof(DataRow);
3208protected internal DataRow[] NewRowArray(int size) {
3212EmptyDataRowArray = (DataRow[]) Array.CreateInstance(GetRowType(), 0);
3216return (DataRow[]) Array.CreateInstance(GetRowType(), size);
3219return ((0 == size) ? DataTable.zeroRows : new DataRow[size]);
3264private DataRowChangeEventArgs OnRowChanged(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction) {
3274private DataRowChangeEventArgs OnRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction) {
3497internal int[] RemoveRecordFromIndexes(DataRow row, DataRowVersion version) {
3525internal int[] InsertRecordToIndexes(DataRow row, DataRowVersion version) {
3545internal void SilentlySetValue(DataRow dr, DataColumn dc, DataRowVersion version, object newValue) {
3584DataRow[] oldRows = new DataRow[Rows.Count];
3597internal void RemoveRow(DataRow row, bool check) {
3701internal void RollbackRow(DataRow row) {
3706private DataRowChangeEventArgs RaiseRowChanged(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction) {
3730private DataRowChangeEventArgs RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction) {
3759private DataRowChangeEventArgs RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, bool fireEvent) {
3792/// <para>Returns an array of all <see cref='System.Data.DataRow'/> objects.</para>
3794public DataRow[] Select() {
3800/// <para>Returns an array of all <see cref='System.Data.DataRow'/> objects that match the filter criteria in order of
3803public DataRow[] Select(string filterExpression) {
3809/// <para>Returns an array of all <see cref='System.Data.DataRow'/> objects that match the filter criteria, in the the
3812public DataRow[] Select(string filterExpression, string sort) {
3818/// <para>Returns an array of all <see cref='System.Data.DataRow'/> objects that match the filter in the order of the
3821public DataRow[] Select(string filterExpression, string sort, DataViewRowState recordStates) {
3826internal void SetNewRecord(DataRow row, int proposedRecord, DataRowAction action = DataRowAction.Change, bool isInMerge = false, bool fireEvent = true, bool suppressEnsurePropertyChanged = false) {
3834private void SetNewRecordWorker(DataRow row, int proposedRecord, DataRowAction action, bool isInMerge, bool suppressEnsurePropertyChanged,
3904List<DataRow> cachedRows = null;
3909cachedRows = new List<DataRow>();
4031internal void SetOldRecord(DataRow row, int proposedRecord) {
4208public DataRow LoadDataRow(object[] values, bool fAcceptChanges) {
4212DataRow row;
4256public DataRow LoadDataRow(object[] values, LoadOption loadOption) {
4289DataRow dataRow = LoadRow(values, loadOption, indextoUse);// if indextoUse == null, it means we dont have PK,
4299internal DataRow UpdatingAdd(object[] values) {
4310DataRow row = this.recordManager[resultRecord];
4316DataRow row2 = NewRow(record);
4324internal bool UpdatingCurrent(DataRow row, DataRowAction action) {
4489private DataRow LoadRow(object[] values, LoadOption loadOption, Index searchIndex) {
4491DataRow dataRow = null;
4575private void SetDataRowWithLoadOption (DataRow dataRow, int recordNo, LoadOption loadOption, bool checkReadOnly) {
5656foreach (DataRow r in tableList[i].Rows) {
6172foreach(DataRow row in Rows) {
6187internal void EvaluateExpressions(DataRow row, DataRowAction action, List<DataRow> cachedRows) {
6208DataRow tableRow = Rows[j];
6216DataRow tableRow = Rows[j];
6229DataRow tableRow = Rows[j];
6241foreach (DataRow relatedRow in cachedRows) {
6264DataRow row = column.table.Rows[j];
6279DataRow row = column.table.Rows[j];
6309internal void EvaluateDependentExpressions(List<DataColumn> columns, DataRow row, DataRowVersion version, List<DataRow> cachedRows) {
6326DataRow dr = Rows[j];
6361foreach (DataRow cachedRow in cachedRows) {
6379foreach (DataRow parentRow in row.GetParentRows(relation, version)) {
6396foreach (DataRow childRow in row.GetChildRows(relation, version)) {
fx\src\data\System\Data\DataView.cs (27)
41private System.Comparison<DataRow> _comparison;
57internal DataRow addNewRow;
80private Dictionary<DataRow, DataRowView> rowViewCache = new Dictionary<DataRow, DataRowView>(DataRowReferenceComparer.Default);
85private readonly Dictionary<DataRow, DataRowView> rowViewBuffer = new Dictionary<DataRow, DataRowView>(DataRowReferenceComparer.Default);
87private sealed class DataRowReferenceComparer : IEqualityComparer<DataRow> {
92public bool Equals(DataRow x, DataRow y) {
95public int GetHashCode(DataRow obj) {
170internal DataView(DataTable table, System.Predicate<DataRow> predicate, System.Comparison<DataRow> comparison, DataViewRowState RowState) {
382internal System.Predicate<DataRow> RowPredicate {
396internal readonly System.Predicate<DataRow> PredicateFilter;
399internal RowPredicateFilter(System.Predicate<DataRow> predicate) {
405bool IFilter.Invoke(DataRow row, DataRowVersion version) {
488internal System.Comparison<DataRow> SortComparison {
725internal void Delete(DataRow row) {
817internal Range FindRecords<TKey,TRow>(Index.ComparisonBySelector<TKey,TRow> comparison, TKey key) where TRow:DataRow
839DataRow newRow = addNewRow;
1272internal DataRow GetRow(int index) {
1289private DataRowView GetRowView(DataRow dr) {
1324internal void MaintainDataView(ListChangedType changedType, DataRow row, bool trackAddRemove) {
1409DataRow dr = GetRow(e.NewIndex);
1478Dictionary<DataRow, DataRowView> rvc = new Dictionary<DataRow, DataRowView>(CountFromIndex, DataRowReferenceComparer.Default);
1486DataRow row = table.recordManager[iterator.Current];
fx\src\data\System\Data\Filter\BinaryNode.cs (4)
41internal override object Eval(DataRow row, DataRowVersion version) {
122private static object Eval(ExpressionNode expr, DataRow row, DataRowVersion version, int[] recordNos) {
237private object EvalBinaryOp(int op, ExpressionNode left, ExpressionNode right, DataRow row, DataRowVersion version, int[] recordNos) {
1218internal override object Eval(DataRow row, DataRowVersion version) {
fx\src\data\System\Data\Selection.cs (14)
76private readonly System.Comparison<DataRow> _comparison;
100public Index(DataTable table, System.Comparison<DataRow> comparison, DataViewRowState recordStates, IFilter rowFilter)
112private Index(DataTable table, IndexField[] indexFields, System.Comparison<DataRow> comparison, DataViewRowState recordStates, IFilter rowFilter) {
220DataRow row = table.recordManager[record];
456DataRow row = table.recordManager[record];
603internal delegate int ComparisonBySelector<TKey,TRow>(TKey key, TRow row) where TRow:DataRow;
606internal Range FindRecords<TKey,TRow>(ComparisonBySelector<TKey,TRow> comparison, TKey key) where TRow:DataRow
667public DataRow GetRow(int i) {
671public DataRow[] GetRows(Object[] values) {
675public DataRow[] GetRows(Range range) {
676DataRow[] newRows = table.NewRowArray(range.Count);
700foreach(DataRow b in table.Rows)
756DataRow row = table.recordManager[record];
824delegate(DataViewListener listener, ListChangedType type, DataRow row, bool track)
fx\src\data\System\NewXml\XmlDataDocument.cs (59)
110internal void SyncRows( DataRow parentRow, XmlNode node, bool fAddRowsToTable) {
113DataRow r = be.Row;
143DataRow parentRow = null;
147DataRow r = be.Row;
215internal void Bind( DataRow r, XmlBoundElement e ) {
339DataRow row = dt.CreateEmptyRow();
445DataRow rowDocElem = GetRowFromElement( docElem );
504private void FixNestedChildren(DataRow row, XmlElement rowElement) {
506foreach( DataRow r in row.GetChildRows(dr) ) {
570private void FoliateIfDataPointers( DataRow row, XmlElement rowElement ) {
606DataRow row = node.Row;
670private XmlNode GetColumnInsertAfterLocation( DataRow row, DataColumn col, XmlBoundElement rowElement ) {
706private ArrayList GetNestedChildRelations(DataRow row) {
717private DataRow GetNestedParent(DataRow row) {
724private static DataRelation GetNestedParentRelation( DataRow row ) {
731private DataColumn GetTextOnlyColumn( DataRow row ) {
759public DataRow GetRowFromElement( XmlElement e ) {
763private XmlNode GetRowInsertBeforeLocation(DataRow row, XmlElement rowElement, XmlNode parentElement) {
764DataRow refRow = row;
775DataRow parentRow = GetNestedParent(row);
793public XmlElement GetElementFromRow( DataRow r ) {
1128foreach( DataRow r in t.Rows ) {
1171DataRow r = GetRowFromElement( be );
1195internal void OnDataRowCreated( object oDataSet, DataRow row ) {
1204internal void OnDataRowCreatedSpecial( object oDataSet, DataRow row ) {
1213internal void OnNewRow( DataRow row ) {
1221private XmlBoundElement AttachBoundElementToDataRow( DataRow row ) {
1232private bool NeedXSI_NilAttr( DataRow row ) {
1241private void OnAddRow( DataRow row ) {
1253DataRow rowDocElem = GetRowFromElement( this.DocumentElement );
1255DataRow parentRow = GetNestedParent( row );
1266private void OnColumnValueChanged( DataRow row, DataColumn col, XmlBoundElement rowElement ) {
1428DataRow row = args.Row;
1447private void OnColumnValuesChanged( DataRow row, XmlBoundElement rowElement ) {
1470private void OnDeleteRow( DataRow row, XmlBoundElement rowElement ) {
1482private void OnDeletingRow( DataRow row, XmlBoundElement rowElement ) {
1536private void OnNestedParentChange(DataRow child, XmlBoundElement childElement, DataColumn childCol) {
1544DataRow parentRowInTree;
1549DataRow parentRowInRelation = GetNestedParent(child);
1746DataRow row = oldRowElem.Row;
1782DataRow row = args.Row;
1845DataRow row = args.Row;
2004private void OnUndeleteRow( DataRow row, XmlElement rowElement ) {
2013DataRow parentRowInRelation = GetNestedParent(row);
2139internal static void SetRowValueToNull( DataRow row, DataColumn col ) {
2148internal static void SetRowValueFromXmlText( DataRow row, DataColumn col, string xmlText ) {
2177DataRow row = rowElement.Row;
2216DataRow row = rowElement.Row;
2304private void UpdateAllColumns( DataRow row, XmlBoundElement rowElement ) {
2377private bool IsRowLive( DataRow row ) {
2380private static void SetNestedParentRow( DataRow childRow, DataRow parentRow ) {
2460DataRow row = rowElem.Row;
2519DataRow row = rowElem.Row;
2569DataRow row = rowElement.Row;
2583DataRow row = rowElement.Row;
2602DataRow childRow = childRowElem.Row;
2608DataRow parentRow = parentRowElem.Row;