コード例 #1
0
        // Summary:
        //     Loads the specified set of DataRow objects 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(DataRow[] rows)
        {
            if (rows.Length == 0)
            {
                return;     // empty array, nothing to do
            }
            Feeder feeder = new WrapDataRowAsFeeder(rows);

            WriteToServer(feeder);
        }
コード例 #2
0
        // Summary:
        //     Loads the specified set of DataRow objects 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(DataRow[] rows)
        {
            if (rows.Length == 0)
                return;     // empty array, nothing to do

            Feeder feeder = new WrapDataRowAsFeeder(rows);
            WriteToServer(feeder);
        }
コード例 #3
0
        // Summary:
        //     Execute the command multiple times, each time using a new set of parameters as stored in
        //     the entries of the provided array
        //
        public void ExecuteBatch(DataRow[] parameters)
        {
            DataFeeder feeder = new WrapDataRowAsFeeder(parameters);

            ExecuteBatch(feeder);
        }
コード例 #4
0
ファイル: NuoDbCommand.cs プロジェクト: nuodb/nuodb-dotnet
 // Summary:
 //     Execute the command multiple times, each time using a new set of parameters as stored in
 //     the entries of the provided array
 //
 public void ExecuteBatch(DataRow[] parameters)
 {
     DataFeeder feeder = new WrapDataRowAsFeeder(parameters);
     ExecuteBatch(feeder);
 }