// Summary: // Fetch the data from the specified IDataReader object and stores it into the target table // // Exceptions: // System.ArgumentException: // If the name of the target table hasn't been specified // // System.IndexOutOfRangeException: // If the mapping specifies a column ordinal that is outside of the allowed range // // NuoDb.Data.Client.NuoDbSqlException: // If the server returns an error public void WriteToServer(IDataReader reader) { Feeder feeder = new WrapDataReaderAsFeeder(reader); WriteToServer(feeder); }
// Summary: // Execute the command multiple times, each time using a new set of parameters as stored in // the rows of the provided IDataReader // public void ExecuteBatch(IDataReader parameters) { DataFeeder feeder = new WrapDataReaderAsFeeder(parameters); ExecuteBatch(feeder); }