Skip to content Skip to sidebar Skip to footer

Sqlite Query Not Matching String

I have a list of about 350 music files that I store in an sqlite table. If new files get added they are added to the db. So I have a query to check if the path of the file is in th

Solution 1:

solved by chue x

         var existingfile = dbconn.Query<File>("SELECT * FROM File WHERE Path = ?", file.Path.Replace("'", "''")).FirstOrDefault();

Post a Comment for "Sqlite Query Not Matching String"