简体   繁体   English

如何知道已创建哪个LiteDB版本DB文件?

[英]How to know with which LiteDB version DB file has been created?

I am using LiteDB to create db file. 我正在使用LiteDB创建数据库文件。 but sometime I use LiteDB version 1 and sometime v4. 但是有时候我会使用LiteDB版本1和某个时候的v4。 Using any version I am creating same file. 使用任何版本,我都在创建相同的文件。 So how can I detect that which version of LiteDB was used to create the db file in c# code? 那么,如何检测使用哪个C#代码创建数据库文件的LiteDB版本呢? Note: I don't want user version of DB file. 注意:我不需要用户版本的数据库文件。 Thanks in advance. 提前致谢。

It seems like you have multiple versions of LiteDB as reference to your project no? 看来您有多个版本的LiteDB作为对项目的引用,不是吗? How are you instantiating the LiteDB object? 您如何实例化LiteDB对象?

Check that you don't have multiple versions as reference of your project, show us your project references and the places where you are using LiteDB, that might help a bit more. 检查您没有多个版本作为项目参考,向我们显示您的项目参考以及使用LiteDB的位置,这可能会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM