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

◆ RefreshSchema()

virtual void System.Data.Common.DbCommandBuilder.RefreshSchema ( )
inlinevirtual

Definition at line 1198 of file DbCommandBuilder.cs.

1199 {
1200 _dbSchemaTable = null;
1201 _dbSchemaRows = null;
1202 _sourceColumnNames = null;
1203 _quotedBaseTableName = null;
1204 DbDataAdapter dataAdapter = DataAdapter;
1205 if (dataAdapter != null)
1206 {
1207 if (InsertCommand == dataAdapter.InsertCommand)
1208 {
1209 dataAdapter.InsertCommand = null;
1210 }
1211 if (UpdateCommand == dataAdapter.UpdateCommand)
1212 {
1213 dataAdapter.UpdateCommand = null;
1214 }
1215 if (DeleteCommand == dataAdapter.DeleteCommand)
1216 {
1217 dataAdapter.DeleteCommand = null;
1218 }
1219 }
1220 DbCommand insertCommand;
1221 if ((insertCommand = InsertCommand) != null)
1222 {
1223 insertCommand.Dispose();
1224 }
1225 if ((insertCommand = UpdateCommand) != null)
1226 {
1227 insertCommand.Dispose();
1228 }
1229 if ((insertCommand = DeleteCommand) != null)
1230 {
1231 insertCommand.Dispose();
1232 }
1233 InsertCommand = null;
1234 UpdateCommand = null;
1235 DeleteCommand = null;
1236 }
override void Dispose(bool disposing)

References System.Data.Common.DbCommandBuilder._dbSchemaRows, System.Data.Common.DbCommandBuilder._dbSchemaTable, System.Data.Common.DbCommandBuilder._quotedBaseTableName, System.Data.Common.DbCommandBuilder._sourceColumnNames, System.Data.Common.DbCommandBuilder.DataAdapter, System.Data.Common.DbCommandBuilder.DeleteCommand, System.Data.Common.DbDataAdapter.DeleteCommand, System.ComponentModel.Component.Dispose(), System.Data.Common.DbCommandBuilder.InsertCommand, System.Data.Common.DbDataAdapter.InsertCommand, System.Data.Common.DbCommandBuilder.UpdateCommand, and System.Data.Common.DbDataAdapter.UpdateCommand.