Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CloneHierarchy()

DataTable System.Data.DataTable.CloneHierarchy ( DataTable sourceTable,
DataSet ds,
Hashtable visitedMap )
inlineprivateinherited

Definition at line 2275 of file DataTable.cs.

2276 {
2277 if (visitedMap == null)
2278 {
2279 visitedMap = new Hashtable();
2280 }
2282 {
2284 }
2285 DataTable dataTable = ds.Tables[sourceTable.TableName, sourceTable.Namespace];
2286 if (dataTable != null && dataTable.Columns.Count > 0)
2287 {
2289 }
2290 else
2291 {
2292 if (dataTable == null)
2293 {
2294 dataTable = new DataTable();
2295 ds.Tables.Add(dataTable);
2296 }
2298 }
2300 foreach (DataRelation childRelation in sourceTable.ChildRelations)
2301 {
2303 }
2304 return dataTable;
2305 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
DataTable CloneHierarchy(DataTable sourceTable, DataSet ds, Hashtable visitedMap)
DataTable IncrementalCloneTo(DataTable sourceTable, DataTable targetTable)

References System.Data.DataTable.DataTable(), System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Data.DataTable.CloneHierarchy(), System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Runtime.Serialization.Dictionary, and System.Data.DataTable.IncrementalCloneTo().

Referenced by System.Data.DataTable.CloneHierarchy(), and System.Data.DataTable.ReadXmlSchema().