Ejemplo n.º 1
0
        // Summary:
        //     Loads the specified DataTable object into the target table, skipping the rows that aren't in the
        //     requested state
        //
        // 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(DataTable table, DataRowState state)
        {
            if (table.Rows.Count == 0)
            {
                return;     // empty array, nothing to do
            }
            Feeder feeder = new WrapDataRowCollectionAsFeeder(table.Rows, state);

            WriteToServer(feeder);
        }
Ejemplo n.º 2
0
        // Summary:
        //     Loads the specified DataTable object into the target table, skipping the rows that aren't in the
        //     requested state
        //
        // 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(DataTable table, DataRowState state)
        {
            if (table.Rows.Count == 0)
                return;     // empty array, nothing to do

            Feeder feeder = new WrapDataRowCollectionAsFeeder(table.Rows, state);
            WriteToServer(feeder);
        }
Ejemplo n.º 3
0
        // Summary:
        //     Execute the command multiple times, each time using a new set of parameters as stored in
        //     the rows of the provided table that have the specified state
        //
        public void ExecuteBatch(DataTable parameters, DataRowState state)
        {
            DataFeeder feeder = new WrapDataRowCollectionAsFeeder(parameters.Rows, state);

            ExecuteBatch(feeder);
        }
Ejemplo n.º 4
0
 // Summary:
 //     Execute the command multiple times, each time using a new set of parameters as stored in
 //     the rows of the provided table that have the specified state
 //
 public void ExecuteBatch(DataTable parameters, DataRowState state)
 {
     DataFeeder feeder = new WrapDataRowCollectionAsFeeder(parameters.Rows, state);
     ExecuteBatch(feeder);
 }