System.Data.SqlClient.SqlCommandBuilder.BuildInformation C# (CSharp) Method

BuildInformation() private method

private BuildInformation ( DataTable schemaTable ) : void
schemaTable System.Data.DataTable
return void
		private void BuildInformation (DataTable schemaTable)
		{
			tableName = String.Empty;
			foreach (DataRow schemaRow in schemaTable.Rows) {
				if (tableName == String.Empty) 
					tableName = (string) schemaRow ["BaseTableName"];
				if (tableName != (string) schemaRow["BaseTableName"])
					throw new InvalidOperationException ("Dynamic SQL generation is not supported against multiple base tables.");
			}
			dbSchemaTable = schemaTable;
		}