Exemplo n.º 1
0
 private int Update(DbCommand command, DataTable table)
 {
     using (var builder = new CommandBuilderFactory(_server.Engine).CreateCommandBuilder())
         using (var adapter = new AdapterFactory(_server.Engine).CreateAdapter())
         {
             adapter.SelectCommand = command;
             builder.DataAdapter   = adapter;
             builder.GetUpdateCommand();
             return(adapter.Update(table));
         }
 }