System.Data.SQLite parseViaFramework

I used System.Data.SQLite to open some databases along the UNC path. The version used was 1.0.82, and it worked well. When it was upgraded to 1.0.86, I suddenly started receiving an error message that it could not open the database file.

After a while, I found that a new parameter called parseViaFramework . When I set to true, everything resumed again.

However, there is very little information about what this option does. I could understand that this has something to do with how the connection string was parsed, but what can I get. If I enter parseViaFramework into a Google search, I get only 2 pages of results.

Can someone tell me what exactly this option does?

+4
source share
2 answers

This addition allows you to use the built-in (for example, the provided framework) syntax code for the connection string when opening the connection. Apparently this change should solve this problem ( source )

I noticed something else there. When using ExecuteReader, you get an "empty reader" and you need to do Read () first. I think this is due to the upgrade, as my code worked well without it. Perhaps this is another thing you need to check.

+2
source

Your problem with UNC and its possible solution with the parseViaFramework flag in the SqliteConnection constructor is mentioned here (first answer) and there

0
source

Source: https://habr.com/ru/post/1482908/


All Articles