mbdavid / LiteDB.Studio

A GUI tool for viewing and editing documents for LiteDB v5
MIT License
750 stars 197 forks source link

Shared mode Failed #38

Closed luckymark closed 3 years ago

luckymark commented 3 years ago

When a database opened by an app with shared mode, Studio open that database with shared mode will fail!

lbnascimento commented 3 years ago

@luckymark I could not reproduce the issue, Shared mode seems to work just fine here. Could you provide a sequence of steps to reproduce the issue?

luckymark commented 3 years ago

@lbnascimento 1)open a db in my application( ConnectionString($"Filename={filename};Mode=Shared")) ) 2) open the same db with shared mode in LiteDBStudio(v1.0.2.0), and then this message popuped:"The process cannot access the file ... because it is being used by another process."

lbnascimento commented 3 years ago

@luckymark You're using the connection string incorrectly, it should be Connection=Shared. For more info, check out the Connection String documentation.

luckymark commented 3 years ago

@lbnascimento Shared mode works! Thanks a lot!