21[DesignTimeVisible(
false)]
24[
Editor(
"Microsoft.VSDesigner.Data.Design.DataTableEditor, Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
"System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
26[
TypeForwardedFrom(
"System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
48 for (
int i = 0; i <
ds.Tables.
Count; i++)
278 if (
index.RefCount <= 1)
604 [
Editor(
"Microsoft.VSDesigner.Data.Design.PrimaryKeyEditor, Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
"System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
637 if (num !=
value.Length)
640 for (
int j = 0;
j < num;
j++)
719 value =
string.Empty;
726 if (
value.Length == 0)
843 value =
string.Empty;
920 if (container !=
null)
1155 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2112:ReflectionToRequiresUnreferencedCode", Justification =
"CreateInstance's use of GetType uses only the parameterless constructor. Warnings are about serialization related constructors.")]
1166 if (name ==
"DataTable.RemotingFormat")
1174 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"Binary serialization is unsafe in general and is planned to be obsoleted. We do not want to mark interface or ctors of this class as unsafe as that would show many unnecessary warnings elsewhere.")]
1185 info.AddValue(
"DataTable.RemotingVersion",
new Version(2, 0));
1321 bool boolean =
info.GetBoolean(
"DataTable.CaseSensitive");
1330 string @
string =
info.GetString(
"DataTable.TypeName");
1334 int @
int =
info.GetInt32(
"DataTable.Columns.Count");
1335 string[]
array =
new string[@int];
1337 for (
int i = 0; i < @int; i++)
1367 for (
int j = 0;
j < @int;
j++)
1390 for (
int j = 0;
j <
array.Length;
j++)
1442 if (
text.Equals(
"U"))
1449 for (
int i = 0; i <
array.Length; i++)
1487 for (
int i = 0; i <
count; i++)
1497 for (
int i = 0; i <
count; i++)
1515 for (
int i = 0; i <
count2; i++)
1538 if (-1 !=
dataRow._tempRecord)
1605 for (
int j = 0;
j < @int;
j++)
1662 if (!flag && !
flag2)
1719 for (
int i = 0; i <
array.Length; i++)
1743 for (
int i = 0; i <
count; i++)
1754 index.FireResetEvent();
1854 flag |=
column.IsNotAllowDBNullViolated();
1856 if (
column.MaxLength >= 0)
1858 flag |=
column.IsMaxLengthViolated();
1917 if (
list !=
null &&
list.Count != 0)
1919 return list.ToArray();
1954 return string.Empty;
2016 if (
column._columnUri ==
null)
2018 column.RaisePropertyChanging(
"Namespace");
2068 for (
int i = 0; i <
keyValues.Length; i++)
2105 if (
row._newRecord != -1)
2118 if (
row._oldRecord !=
row._newRecord)
2139 else if (
row._newRecord == -1)
2215 for (
int i = 0; i <
array.Length; i++)
2217 if (
array[i].rowID != -1)
2219 array[i].AcceptChanges();
2362 if (constraint !=
null)
2483 if (
row.Table !=
this)
2487 if (
row.rowID != -1)
2529 for (
int i = 0; i <
count; i++)
2540 row.ResetLastChangedColumn();
2546 if (
row._tempRecord != -1)
2554 Clear(clearAll:
true);
2639 if ((
object)
s1 ==
s2)
2651 int num =
s1.Length;
2653 while (num > 0 && (
s1[num - 1] ==
' ' ||
s1[num - 1] ==
'\u3000'))
2690 if (
row._oldRecord != -1)
2694 if (
row._newRecord != -1)
2713 if (
row._newRecord == -1)
2765 for (
int i = 0; i <
indexDesc.Length; i++)
2902 for (i = 0; i <
name.Length &&
'\u3000' > name[i]; i++)
2905 if (name.Length == i)
2927 if (
row._oldRecord != -1)
2931 if (
row._newRecord != -1)
2935 if (num == -1 &&
num2 == -1)
2962 if (
row.Table !=
this)
2966 if (
row.rowID != -1)
2970 if (
row._oldRecord == -1 &&
row._newRecord == -1)
2984 if (
row._newRecord != -1)
3000 if (
row._oldRecord != -1)
3004 if (
row._newRecord != -1)
3057 for (
int i = 0; i <
value.Length; i++)
3088 for (
int i = 0; i <
count; i++)
3132 if (!
column.AutoIncrement)
3138 else if (
column.DefaultValue !=
null)
3346 for (
int i = 0; i <
array2.Length; i++)
3360 if (
text.StartsWith(
'['))
3362 if (!
text.EndsWith(
']'))
3390 for (
int i = 0; i <
count; i++)
3393 if (0 <
index.RefCount)
3411 for (
int i = 0; i <
count; i++)
3414 if (0 <
index.RefCount)
3432 for (
int i = 0; i <
count; i++)
3435 if (0 <
index.RefCount)
3453 for (
int i = 0; i <
count; i++)
3456 if (0 <
index.RefCount)
3482 int[]
array =
new int[num];
3511 int[]
array =
new int[num];
3516 if (
row.HasVersion(version))
3537 int[]
oldIndex =
dr.Table.RemoveRecordFromIndexes(
dr, version);
3539 int[]
newIndex =
dr.Table.InsertRecordToIndexes(
dr, version);
3540 if (
dr.HasVersion(version))
3546 if (
dc._dependentColumns !=
null)
3548 dc.Table.EvaluateDependentExpressions(
dc._dependentColumns,
dr, version,
null);
3552 dr.ResetLastChangedColumn();
3562 for (
int i = 0; i <
array.Length; i++)
3575 if (
row.rowID == -1)
3645 for (
int i = 0; i <
count; i++)
3648 if (0 >=
index.RefCount)
3748 for (
int i = 0; i <
count; i++)
3773 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"Filter expression is empty therefore this is safe.")]
3911 row.ResetLastChangedColumn();
4253 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"DataColumn with null expression and int data type is safe.")]
4277 for (
int num =
Columns.
Count - 1; num >= position; num--)
4279 Columns[num].SetOrdinalInternal(num + 1);
4297 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"Expression is null and potential problem with data type has already been reported when constructing parentKey")]
4318 for (
int i = 0; i <
count; i++)
4353 merger.MergeTable(table);
4364 [
RequiresUnreferencedCode(
"Members from types used in the expression column to be trimmed if not referenced directly.")]
4370 [
RequiresUnreferencedCode(
"Using LoadOption may cause members from types used in the expression column to be trimmed if not referenced directly.")]
4376 [
RequiresUnreferencedCode(
"Using LoadOption may cause members from types used in the expression column to be trimmed if not referenced directly.")]
4420 for (
int j = 0;
j <
array.Length;
j++)
4607 if (
dataRow._tempRecord != -1)
4652 if (
dataRow.RowError.Length == 0)
4909 if (
column.Expression.Length == 0)
5122 if (reader.
LocalName ==
"diffgram" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1")
5166 for (
int i = 0; i < attributeCount; i++)
5169 if (reader.
NamespaceURI.Equals(
"http://www.w3.org/2000/xmlns/"))
5182 if (reader.
LocalName ==
"diffgram" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1")
5214 if (reader.
LocalName ==
"diffgram" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1")
5301 depth = reader.
Depth;
5320 if (reader.
LocalName ==
"diffgram" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1")
5385 for (
int i = 0; i < attributeCount; i++)
5388 if (reader.
NamespaceURI.Equals(
"http://www.w3.org/2000/xmlns/"))
5429 if (reader.
LocalName ==
"diffgram" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1")
5547 int depth = reader.
Depth;
5565 if (reader.
LocalName !=
"diffgram" && reader.
NamespaceURI !=
"urn:schemas-microsoft-com:xml-diffgram-v1")
5575 if (reader.
Depth > depth)
5577 if (reader.
NamespaceURI !=
"urn:schemas-microsoft-com:xml-diffgram-v1" && reader.
NamespaceURI !=
"urn:schemas-microsoft-com:xml-msdata")
5582 if (reader.
Depth - 1 > depth)
5590 if ((reader.
LocalName ==
"before" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1") || (reader.
LocalName ==
"errors" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1"))
5595 while (reader.
Depth > depth)
5609 for (
int i = 0; i <
list.Count; i++)
5732 string empty =
string.Empty;
5758 if (!
string.IsNullOrEmpty(
dataTable.Namespace))
5803 if (
column.Expression.Length != 0)
5880 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2046:UnrecognizedReflectionPattern", Justification =
"https://github.com/mono/linker/issues/1187 Trimmer thinks this implements IXmlSerializable.GetSchema() and warns about not matching attributes.")]
5897 [
RequiresUnreferencedCode(
"DataTable.GetSchema uses TypeDescriptor and XmlSerialization underneath which are not trimming safe. Members from serialized types may be trimmed if not referenced directly.")]
5919 [
RequiresUnreferencedCode(
"DataTable.ReadXml uses XmlSerialization underneath which is not trimming safe. Members from serialized types may be trimmed if not referenced directly.")]
5930 [
RequiresUnreferencedCode(
"DataTable.WriteXml uses XmlSerialization underneath which is not trimming safe. Members from serialized types may be trimmed if not referenced directly.")]
5971 if (
row._oldRecord != -1 &&
row._oldRecord !=
row._newRecord)
5975 if (
row._newRecord != -1)
5979 if (
row._tempRecord != -1)
5986 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"This is unsafe only when columns have associated expression. All ways to add such expression are marked unsafe.")]
5991 if (
row._oldRecord != -1 &&
row._oldRecord !=
row._newRecord)
5995 if (
row._newRecord != -1)
5999 if (
row._tempRecord != -1)
6008 if (
row._oldRecord != -1 ||
row._newRecord != -1)
6078 if (
column.DataExpression.IsTableAggregate() &&
count > 0)
6081 for (
int i = 0; i <
count; i++)
6092 if (
dataRow._tempRecord != -1)
6123 if (
column._dependentColumns ==
null)
6143 for (
int i = 0; i <
count; i++)
6153 bool flag =
dataColumn.DataExpression.IsTableAggregate();
static ? object CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type, BindingFlags bindingAttr, Binder? binder, object?[]? args, CultureInfo? culture)
static unsafe Array CreateInstance(Type elementType, int length)
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
bool ContainsKey(TKey key)
virtual void OnDeserialization(object? sender)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
Enumerator GetEnumerator()
void Add(TKey key, TValue value)
virtual void OnDeserialization(object? sender)
static bool ToBoolean([NotNullWhen(true)] object? value)
static readonly DBNull Value
static ArgumentOutOfRangeException InvalidMissingSchemaAction(MissingSchemaAction value)
static bool IsCatchableExceptionType(Exception e)
static bool IsCatchableOrSecurityExceptionType(Exception e)
static void TraceExceptionWithoutRethrow(Exception e)
static bool IsTypeCustomType(Type type)
void FinishInitConstraints()
void Remove(Constraint constraint)
void Add(Constraint constraint)
Constraint FindConstraint(Constraint constraint)
bool IsConstraintViolated()
void Remove(DataColumn column)
void AddAt(int index, DataColumn column)
void Add(DataColumn column)
void FinishInitCollection()
static readonly DataCommonEventSource Log
void Add(DataRelation relation)
virtual bool Contains(string? name)
void ArrayRemove(DataRow row)
void ArrayAdd(DataRow row)
override void CopyTo(Array ar, int index)
void ArrayInsert(DataRow row, int pos)
void OnDataRowCreated(DataRow row)
DataRelationCollection Relations
DataTableCollection Tables
string GetXmlSchemaForRemoting(DataTable table)
void RestoreEnforceConstraints(bool value)
SerializationFormat RemotingFormat
bool ValidateLocaleConstraint()
bool ValidateCaseConstraint()
void OnClearFunctionCalled(DataTable table)
string GetRemotingDiffGram(DataTable table)
DataViewManager DefaultViewManager
void RegisterName(string name, string tbNamespace)
void UnregisterName(string name)
void Remove(DataTable table)
bool Contains(string? name)
int IndexOf(DataTable? table)
void SetNewRecordWorker(DataRow row, int proposedRecord, DataRowAction action, bool isInMerge, bool suppressEnsurePropertyChanged, int position, bool fireEvent, out Exception deferredException)
readonly DataColumnCollection _columnCollection
DataTable(string? tableName)
DataColumn AddUniqueKey(int position)
int NewUninitializedRecord()
DataRelationCollection _childRelationsCollection
void Merge(DataTable table, bool preserveChanges, MissingSchemaAction missingSchemaAction)
virtual void OnRowDeleted(DataRowChangeEventArgs e)
virtual void Load(IDataReader reader, LoadOption loadOption, FillErrorEventHandler? errorHandler)
bool SetCaseSensitiveValue(bool isCaseSensitive, bool userSet, bool resetIndexes)
void OnRemoveColumnInternal(DataColumn column)
DataColumnChangeEventHandler _onColumnChangedDelegate
void CheckNotModifying(DataRow row)
XmlReadMode ReadXml(XmlReader reader, bool denyResolving)
bool CheckForClosureOnExpressionTables(List< DataTable > tableList)
void WriteXmlSchema(string fileName)
void RecordStateChanged(int record1, DataViewRowState oldState1, DataViewRowState newState1, int record2, DataViewRowState oldState2, DataViewRowState newState2)
void WriteXmlSchema(string fileName, bool writeHierarchy)
DataTableClearEventHandler? TableCleared
void DeserializeTableData(SerializationInfo info, StreamingContext context, int serIndex)
virtual void OnTableClearing(DataTableClearEventArgs e)
void DeserializeTableSchema(SerializationInfo info, StreamingContext context, bool isSingleTable)
Index GetIndex(string sort, DataViewRowState recordStates, IFilter rowFilter)
DataColumn[] _delayedSetPrimaryKey
DataRowChangeEventHandler? RowChanged
void ReadXSDSchema(XmlReader reader, bool denyResolving)
void Merge(DataTable table)
void WriteXmlSchema(XmlWriter? writer)
PropertyDescriptorCollection GetPropertyDescriptorCollection(Attribute[] attributes)
void WriteXml(string fileName)
DataRow NewUninitializedRow()
bool _suspendEnforceConstraints
void SerializeTableSchema(SerializationInfo info, StreamingContext context, bool isSingleTable)
virtual Type GetRowType()
void NewRowCreated(DataRow row)
DataTable CloneTo(DataTable clone, DataSet cloneDS, bool skipExpressionColumns)
void WriteXmlSchema(XmlWriter? writer, bool writeHierarchy)
EventHandler _onInitialized
void ReadXmlSerializableInternal(XmlReader reader)
DataRow AddRecords(int oldRecord, int newRecord)
int GetSpecialHashCode(string name)
void InsertRow(DataRow row, long proposedID)
int[] InsertRecordToIndexes(DataRow row, DataRowVersion version)
void SerializeExpressionColumns(SerializationInfo info, StreamingContext context, int serIndex)
static XmlSchemaComplexType GetDataTableSchema(XmlSchemaSet? schemaSet)
void EvaluateExpressions()
PropertyCollection _extendedProperties
readonly ReaderWriterLockSlim _indexesLock
void EvaluateExpressions(DataRow row, DataRowAction action, List< DataRow > cachedRows)
void Clear(bool clearAll)
List< Index > _shadowIndexes
void WriteXml(TextWriter? writer)
DataRow LoadRow(object[] values, LoadOption loadOption, Index searchIndex)
readonly List< Index > _indexes
void WriteXml(string fileName, XmlWriteMode mode)
void CascadeAll(DataRow row, DataRowAction action)
DataRow[] _emptyDataRowArray
DataColumnChangeEventHandler? ColumnChanged
void RaisePropertyChanging(string name)
void WriteXml(TextWriter? writer, XmlWriteMode mode, bool writeHierarchy)
DataRelation[] FindNestedParentRelations()
void ReadXmlSchema(XmlReader reader, bool denyResolving)
bool _savedEnforceConstraints
DataRow UpdatingAdd(object[] values)
int _ukColumnPositionForInference
readonly List< DataViewListener > _dataViewListeners
void WriteXml(XmlWriter? writer)
DataTable CloneHierarchy(DataTable sourceTable, DataSet ds, Hashtable visitedMap)
int Compare(string s1, string s2)
void SetMergeRecords(DataRow row, int newRecord, int oldRecord, DataRowAction action)
DataRowChangeEventArgs OnRowChanged(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction)
void Merge(DataTable table, bool preserveChanges)
UniqueConstraint _primaryKey
DataRow MergeRow(DataRow row, DataRow targetRow, bool preserveChanges, Index idxSearch)
bool _caseSensitiveUserSet
void DeserializeExpressionColumns(SerializationInfo info, StreamingContext context, int serIndex)
bool IsEmptyXml(XmlReader reader)
PropertyChangedEventHandler _onPropertyChangingDelegate
void WriteXml(string fileName, bool writeHierarchy)
void WriteXml(string fileName, XmlWriteMode mode, bool writeHierarchy)
IFormatProvider _formatProvider
bool AreIndexEventsSuspended
void SerializeConstraints(SerializationInfo info, StreamingContext context, int serIndex, bool allConstraints)
void CreateTableList(DataTable currentTable, List< DataTable > tableList)
EventHandler? Initialized
void WriteXmlSchema(Stream? stream)
void EvaluateDependentExpressions(DataColumn column)
DataRow NewRow(int record)
readonly ConstraintCollection _constraintCollection
void WriteXml(Stream? stream, XmlWriteMode mode)
void RemoveDependentColumn(DataColumn expressionColumn)
void DeserializeDataTable(SerializationInfo info, StreamingContext context, bool isSingleTable, SerializationFormat remotingFormat)
void ReadXmlSchema(Stream? stream)
string GetInheritedNamespace(List< DataTable > visitedTables)
virtual void OnColumnChanged(DataColumnChangeEventArgs e)
void GetRowAndColumnErrors(int rowIndex, Hashtable rowErrors, Hashtable colErrors)
DataColumn AddForeignKey(DataColumn parentKey)
int NewRecord(int sourceRecord)
virtual DataTable CreateInstance()
IndexField[] NewIndexDesc(DataKey key)
DataRowChangeEventHandler _onRowDeletedDelegate
bool IsSuffix(string s1, string s2)
DataRow[] Select(string? filterExpression, string? sort, DataViewRowState recordStates)
string DisplayExpressionInternal
void UpdatePropertyDescriptorCollectionCache()
void ReadXmlDiffgram(XmlReader reader)
DataRowChangeEventHandler? RowDeleting
void SuspendIndexEvents()
void AddDependentColumn(DataColumn expressionColumn)
virtual void OnPropertyChanging(PropertyChangedEventArgs pcevent)
bool IsNamespaceInherited()
ConstraintCollection Constraints
virtual void OnColumnChanging(DataColumnChangeEventArgs e)
PropertyCollection ExtendedProperties
void RestoreShadowIndexes()
void FreeRecord(ref int record)
void ReadXmlSchema(XmlReader? reader)
XmlReadMode ReadXml(XmlReader? reader)
XmlReadMode ReadXml(TextReader? reader)
void ResetInternalIndexes(DataColumn column)
DataColumnCollection Columns
readonly List< DataView > _delayedViews
XmlQualifiedName TypeName
List< DataViewListener > GetListeners()
IndexField[] ParseSortString(string sortString)
void CopyRow(DataTable table, DataRow row)
int IndexOf(string s1, string s2)
object Compute(string? expression, string? filter)
bool ShouldSerializeCaseSensitive()
void RecordChanged(int record)
void InsertRow(DataRow row, int proposedID, int pos)
DataTable(SerializationInfo info, StreamingContext context)
DataRowChangeEventHandler _onRowDeletingDelegate
DataTable Clone(DataSet cloneDS)
DataRelationCollection _parentRelationsCollection
DataRelation[] _nestedParentRelations
DataTableReader CreateDataReader()
void SerializeTableData(SerializationInfo info, StreamingContext context, int serIndex)
StringComparer _hashCodeProvider
void RestoreConstraint(bool originalEnforceConstraint)
virtual void OnRowChanged(DataRowChangeEventArgs e)
void WriteXmlSchema(Stream? stream, bool writeHierarchy)
void SetDataSet(DataSet dataSet)
DataTableNewRowEventHandler _onTableNewRowDelegate
void WriteXml(Stream? stream, bool writeHierarchy)
bool NeedColumnChangeEvents
int NewRecordFromArray(object[] value)
void ReadXmlSchema(TextReader? reader)
void WriteXml(XmlWriter? writer, XmlWriteMode mode)
virtual ? XmlSchema GetSchema()
DataRow[] NewRowArray(int size)
void SetOldRecord(DataRow row, int proposedRecord)
DataRow[] Select(string? filterExpression)
CompareOptions _compareFlags
virtual void OnRowDeleting(DataRowChangeEventArgs e)
DataRowChangeEventArgs OnRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction)
SerializationFormat _remotingFormat
void CheckCascadingNamespaceConflict(string realNamespace)
virtual void OnRemoveColumn(DataColumn column)
DataExpression _displayExpression
Index GetIndex(IndexField[] indexDesc, DataViewRowState recordStates, IFilter rowFilter)
DataRow LoadDataRow(object?[] values, LoadOption loadOption)
static int s_objectTypeCount
readonly DataRowCollection _rowCollection
DataRowState ConvertToRowState(BitArray bitStates, int bitIndex)
bool CheckForClosureOnExpressions(DataTable dt, bool writeHierarchy)
void WriteXmlSchema(TextWriter? writer, bool writeHierarchy)
bool ShouldSerializeLocale()
void CheckNamespaceValidityForNestedParentRelations(string ns, DataTable parentTable)
DataColumn AddUniqueKey()
bool UpdatingCurrent(DataRow row, DataRowAction action)
DataColumnChangeEventHandler? ColumnChanging
XmlSchema IXmlSerializable. GetSchema()
int UKColumnPositionForInference
void WriteXml(XmlWriter? writer, bool writeHierarchy)
DataRow FindMergeTarget(DataRow row, DataKey key, Index ndx)
XmlReadMode ReadXml(XmlReader reader, XmlReadMode mode, bool denyResolving)
void RecordChanged(int[] oldIndex, int[] newIndex)
DataTable IncrementalCloneTo(DataTable sourceTable, DataTable targetTable)
void WriteXml(TextWriter? writer, bool writeHierarchy)
DataTable? GetChanges(DataRowState rowStates)
void ReadEndElement(XmlReader reader)
DataRow FindRow(DataKey key, object[] values)
void RestoreIndexEvents(bool forceReset)
void InsertRow(DataRow row, long proposedID, int pos, bool fireEvent)
void WriteXmlSchema(TextWriter? writer)
DataRowChangeEventHandler _onRowChangedDelegate
DataTableClearEventHandler _onTableClearingDelegate
void WriteXml(XmlWriter? writer, XmlWriteMode mode, bool writeHierarchy)
DataRow FindRow(DataKey key, object value)
DataRow FindByPrimaryKey(object[] values)
void WriteXml(Stream? stream, XmlWriteMode mode, bool writeHierarchy)
DataRelationCollection ParentRelations
XmlReadMode ReadXml(string fileName)
DataRowChangeEventArgs RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction)
void CheckNamespaceValidityForNestedRelations(string realNamespace)
virtual void OnTableCleared(DataTableClearEventArgs e)
void Load(IDataReader reader, LoadOption loadOption)
void ReadXDRSchema(XmlReader reader)
void ImportRow(DataRow? row)
void SerializeDataTable(SerializationInfo info, StreamingContext context, bool isSingleTable, SerializationFormat remotingFormat)
DataTableClearEventHandler _onTableClearedDelegate
void CommitRow(DataRow row)
DataTable(string? tableName, string? tableNamespace)
void WriteXml(TextWriter? writer, XmlWriteMode mode)
void DoRaiseNamespaceChange()
int Compare(string s1, string s2, CompareInfo comparer)
bool SuspendEnforceConstraints
DataTableClearEventHandler? TableClearing
virtual void OnTableNewRow(DataTableNewRowEventArgs e)
Index GetIndex(IndexField[] indexDesc)
DataRowChangeEventHandler? RowDeleted
string FormatSortString(IndexField[] indexDesc)
void DeserializeConstraints(SerializationInfo info, StreamingContext context, int serIndex, bool allConstraints)
void AddRow(DataRow row, int proposedID)
void ReadXmlSchema(string fileName)
DataColumnChangeEventHandler _onColumnChangingDelegate
void DeleteRow(DataRow row)
void WriteXmlInternal(XmlWriter writer)
List< DataColumn > _dependentColumns
Index _loadIndexwithOriginalAdded
DataRowChangeEventHandler? RowChanging
PropertyChangedEventHandler PropertyChanging
virtual DataTable Clone()
void SilentlySetValue(DataRow dr, DataColumn dc, DataRowVersion version, object newValue)
DataRowChangeEventArgs RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, bool fireEvent)
void Load(IDataReader reader)
bool MoveToElement(XmlReader reader, int depth)
void RecordStateChanged(int record, DataViewRowState oldState, DataViewRowState newState)
DataRowChangeEventHandler _onRowChangingDelegate
bool SetLocaleValue(CultureInfo culture, bool userSet, bool resetIndexes)
void WriteXml(Stream? stream)
override string ToString()
virtual void GetObjectData(SerializationInfo info, StreamingContext context)
DataRow[] Select(string? filterExpression, string? sort)
void SetKeyValues(DataKey key, object[] keyValues, int record)
void SetDataRowWithLoadOption(DataRow dataRow, int recordNo, LoadOption loadOption, bool checkReadOnly)
DataRow FindByPrimaryKey(object value)
void RollbackRow(DataRow row)
PropertyDescriptorCollection _propertyDescriptorCollectionCache
void ConvertToRowError(int rowIndex, Hashtable rowErrors, Hashtable colErrors)
void SetNewRecord(DataRow row, int proposedRecord, DataRowAction action=DataRowAction.Change, bool isInMerge=false, bool fireEvent=true, bool suppressEnsurePropertyChanged=false)
Index _loadIndexwithCurrentDeleted
void CreateRelationList(List< DataTable > tableList, List< DataRelation > relationList)
DataTableNewRowEventHandler? TableNewRow
readonly RecordManager _recordManager
virtual DataRow NewRowFromBuilder(DataRowBuilder builder)
void EvaluateDependentExpressions(List< DataColumn > columns, DataRow row, DataRowVersion version, List< DataRow > cachedRows)
DataRowChangeEventArgs RaiseRowChanged(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction)
readonly DataRowBuilder _rowBuilder
virtual void OnRowChanging(DataRowChangeEventArgs e)
void RemoveRow(DataRow row, bool check)
IndexField[] _primaryIndex
virtual void ReadXmlSerializable(XmlReader? reader)
DataRelation[] NestedParentRelations
int[] RemoveRecordFromIndexes(DataRow row, DataRowVersion version)
SerializationFormat RemotingFormat
DataRelationCollection ChildRelations
void EvaluateExpressions(DataColumn column)
XmlReadMode ReadXml(Stream? stream)
List< Index > LiveIndexes
DataRow LoadDataRow(object?[] values, bool fAcceptChanges)
DataRow FindByIndex(Index ndx, object[] key)
DataView CreateDataView(DataTable table)
static Exception ColumnOutOfRange(int index)
static Exception TableMissingPrimaryKey()
static Exception RowAlreadyRemoved()
static Exception RowInsertMissing(string tableName)
static Exception CanNotSetRemotingFormat()
static Exception InValidNestedRelation(string childTableName)
static Exception DataTableInferenceNotSupported()
static Exception CannotAddDuplicate2(string table)
static Exception NoTableName()
static Exception TableCannotAddToSimpleContent()
static Exception DatasetConflictingName(string table)
static Exception ValueArrayLength()
static Exception InvalidRowBitPattern()
static Exception RowAlreadyDeleted()
static Exception RowEmpty()
static Exception EnforceConstraint()
static Exception CanNotSerializeDataTableHierarchy()
static Exception InvalidRowState(DataRowState state)
static Exception DuplicateTableName2(string table, string ns)
static Exception ArgumentOutOfRange(string paramName)
static Exception CanNotRemoteDataTable()
static Exception CannotChangeCaseLocale()
static Exception RowAlreadyInTheCollection()
static Exception RowAlreadyInOtherCollection()
static Exception CanNotSerializeDataTableWithEmptyName()
static Exception InvalidPrefix(string name)
static Exception MultipleTextOnlyColumns()
static Exception TraceExceptionWithoutRethrow(Exception e)
static Exception TableNotFound(string tableName)
static Exception InvalidSortString(string sort)
static Exception DataSetUnsupportedSchema(string ns)
static Exception TableForeignPrimaryKey()
static Exception InvalidRemotingFormat(SerializationFormat mode)
static Exception ArgumentNull(string paramName)
int FindRecord(int record)
int GetRecord(int recordIndex)
void Save(XmlWriter xmlw)
int ImportRecord(DataTable src, int record)
void SetRowCache(DataRow[] newRows)
int CopyRecord(DataTable src, int record, int copy)
void Clear(bool clearAll)
void FreeRecord(ref int record)
static IDisposable EnterRestrictedScope(DataSet dataSet)
DataColumn[] ColumnsReference
static string GenUniqueColumnName(string proposedName, DataTable table)
static bool IsMappedColumn(DataColumn c)
void Save(DataSet ds, XmlWriter xw)
static ? Delegate Remove(Delegate? source, Delegate? value)
static ? Delegate Combine(Delegate? a, Delegate? b)
static readonly EventArgs Empty
static void SuppressFinalize(object obj)
int IndexOf(string source, char value)
bool IsSuffix(string source, string suffix, CompareOptions options)
virtual CompareInfo CompareInfo
static CultureInfo CurrentCulture
static CultureInfo InvariantCulture
override bool Equals([NotNullWhen(true)] object? value)
static string Load_ReadOnlyDataModified
int GetHashCode(object obj)
static StringComparer Create(CultureInfo culture, bool ignoreCase)
static int CompareExchange(ref int location1, int value, int comparand)
static int Increment(ref int location)
void EnterUpgradeableReadLock()
void ExitUpgradeableReadLock()
static ? Type GetType(string typeName, bool throwOnError, bool ignoreCase)
static ? XmlSchema Read(TextReader reader, ValidationEventHandler? validationEventHandler)
static ? string EncodeName(string? name)
static ? string DecodeName(string? name)
static ? string EncodeLocalName(string? name)
override string ToString()
static readonly XmlQualifiedName Empty
string? GetAttribute(string name)
virtual void ReadEndElement()
bool MoveToAttribute(string name)
virtual bool HasAttributes
virtual XmlNodeType MoveToContent()
void Remove(IComponent? component)
void WriteXml(XmlWriter writer)
void ReadXml(XmlReader reader)
DesignerSerializationVisibility
delegate void PropertyChangedEventHandler(object? sender, PropertyChangedEventArgs e)
delegate void DataTableNewRowEventHandler(object sender, DataTableNewRowEventArgs e)
delegate void DataColumnChangeEventHandler(object sender, DataColumnChangeEventArgs e)
delegate void DataTableClearEventHandler(object sender, DataTableClearEventArgs e)
delegate void FillErrorEventHandler(object sender, FillErrorEventArgs e)
delegate void DataRowChangeEventHandler(object sender, DataRowChangeEventArgs e)
DynamicallyAccessedMemberTypes
XmlSchemaContentProcessing
delegate void EventHandler(object? sender, EventArgs e)
void Prepare(DataTable table)