1

我的程序中有一个 Missing Method Exception 指出我的代码中缺少一个方法,问题是我的代码中有该方法,我试图清理、重建删除并添加 dll 文件,同样的事情发生了,我还尝试从团队基础服务器重新映射我的项目,但问题仍然存在,下面是来自异常消息的缺失方法异常屏幕截图的“缺失方法” :

    public static SQLiteDataStore MyDataStore
    {
        get
        {
            if (DatabaseUsed == DatabaseType.Loaded)
            {
                if (_isIntializedNew)
                    return _myLoadedDataInstance;
                else
                {
                    _myLoadedDataInstance = new SQLiteDataStore(LoadedDatabaseFullPath);
                    _myLoadedDataInstance.CreateOrUpdateStore();
                    _myLoadedDataInstance.ConnectionBehavior = ConnectionBehavior.Persistent;
                    _myLoadedDataInstance.RecoveryEnabled = false;
                    _isIntializedNew = true;
                    GetAllEntities();
                    return _myLoadedDataInstance;
                }
            }
            else
            {
                if (_isIntialized)
                    return _myCurrentDataInstance;
                else
                {
                    _myCurrentDataInstance = new SQLiteDataStore(CurrentDatabaseFullPath);
                    _myCurrentDataInstance.CreateOrUpdateStore();
                    _myCurrentDataInstance.ConnectionBehavior = ConnectionBehavior.Persistent;
                    _myCurrentDataInstance.RecoveryEnabled = false;
                    _isIntialized = true;
                    GetAllEntities();
                    return _myCurrentDataInstance;
                }
            }
        }

        set
        {
            if (DatabaseUsed == DatabaseType.Loaded)
            {
                _myLoadedDataInstance = value; _isIntializedNew = false;
            }
            else
            {
                _myCurrentDataInstance = value; _isIntialized = false;
            }
        }


    }

任何人都知道如何追踪这些问题的根本原因或解决此问题的解决方案?

4

0 回答 0