How to clear the DataContext cache on Linq to Sql

后端 未结 3 1763
南旧
南旧 2020-12-28 08:40

I\'m using Linq to Sql to query some database, i only use Linq to read data from the DB, and i make changes to it by other means. (This cannot be changed, this is a restrict

3条回答
  •  长情又很酷
    2020-12-28 09:22

    You should be able to just requery the result sets that are using this objects. This would not pull a cached set, but would actually return the final results. I know that this may not be as easy or feasible depending on how you setup your app...

    HTH.

提交回复
热议问题