【发布时间】:2019-02-19 19:21:19
【问题描述】:
我有一个 C# 数据集,该数据集在应用程序启动时从包含大量数据的数据库中加载。 这会减慢应用程序的启动速度。 我想将数据集表留空并在第一次访问表时从数据库中填充它们一次,因此任何表在第一次访问之前都保持为空。
最好的方法是什么?
【问题讨论】:
-
为什么不在
Thread或Background Worker做呢? -
我们在其他场景中尝试过,但它有问题。
-
When the table is accessed for the first time- 这是什么意思?
标签: c# database winforms performance dataset