更新SQLDatabase复选框列所在的SQL数据库字段

时间:2019-06-25 12:27:10

标签: c# wpf linq-to-sql

这是一个填充WPF DataGrid的LinqToSql查询:

created(){
  // Save the component to a local variable for use in event callbacks
  var that = this;

  eventBus.$on('sentMessage', (data) => {
      // notice the differences between these two objects
      console.log(this, that); 

      console.log('eventBus called on created in App.vue!');
      let temp = [data.message];
      that.message = temp.concat(that.messages.slice(0));
      console.log('new message concatinated!');

  });

  eventBus.$on('refreshMessages', () => {
  //    console.log('page refresh got called!')
      let randomIndex = Math.floor(Math.random() * randomMessages.length);
      let temp = [randomMessages[randomIndex]];
      that.messages = temp.concat(that.messages.slice(0));
  //    console.log('page refreshed!');
  });
},

enter image description here

然后,用户可以选中一个或多个复选框 当他单击数据网格底部的蓝色按钮时,我想更新所选行的SQL SERVER数据库中的ART_CODE列。 有人可以帮助我并告诉我该怎么做吗? 非常感谢

0 个答案:

没有答案