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

◆ GetTableMapping()

DataTableMapping System.Data.Common.DbCommandBuilder.GetTableMapping ( DataRow dataRow)
inlineprivate

Definition at line 960 of file DbCommandBuilder.cs.

961 {
962 DataTableMapping result = null;
963 if (dataRow != null)
964 {
965 DataTable table = dataRow.Table;
966 if (table != null)
967 {
968 DbDataAdapter dataAdapter = DataAdapter;
969 if (dataAdapter != null)
970 {
971 result = dataAdapter.GetTableMapping(table);
972 }
973 else
974 {
975 string tableName = table.TableName;
976 result = new DataTableMapping(tableName, tableName);
977 }
978 }
979 }
980 return result;
981 }
DataTableMapping GetTableMapping(DataTable dataTable)

References System.Data.Common.DbCommandBuilder.DataAdapter, System.Data.Common.DbDataAdapter.GetTableMapping(), System.Data.DataRow.Table, and System.Data.DataTable.TableName.

Referenced by System.Data.Common.DbCommandBuilder.GetDeleteCommand(), System.Data.Common.DbCommandBuilder.GetInsertCommand(), and System.Data.Common.DbCommandBuilder.GetUpdateCommand().