How do you clear changes in LinqToSql?

前端 未结 2 1628
一生所求
一生所求 2021-01-22 18:48

I have a combobox in my WPF app that is databound to my list of objects in my View Model. When the user makes changes to the selected object and then selects another item befor

2条回答
  •  悲&欢浪女
    2021-01-22 19:33

    Your best bet is probably to re-query into a separate data-context. You can negate an insert (from the change-set) by using DeleteOnSubmit (and the reverse), but I'd rather not, myself.

提交回复
热议问题