问题描述
我编写了一个内部商务电话应用程序,它使用通过网络同步的本地数据库用户返回办公室时的服务器调用。这样做是为了避免高额数据费用。
创建DataContext时,我使用了以下 参数:
" Data Source = isostore:/Claims.sdf;最大数据库大小= 512;" 。该应用程序工作正常,我没有数据问题,但有些用户经常
达到最大数据库大小512.我想警告他们,当他们接近这个限制,但找不到任何调用,以获得当前大小的数据库。有谁知道如何做到这一点?
I have written an internal business phone app which uses a local database which is synced via web server calls when the user returns to the office. This is done to avoid high data charges. When creating the DataContext I used the following parameter: "Data Source=isostore:/Claims.sdf; Max Database Size = 512;". The application works fine and I have no problems with the data, however some users often reach the max database size of 512. I want to warn them when they are approaching this limit but cannot find any calls to get the current size of the database. Does anyone know how to do this?
这篇关于获取本地数据库大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!