Hello,

I tried to use SQLite 3.7.14.1 with sqlite-net 1.0.5 (both official from
visual studio gallery or NuGet with no modifications) for WinRT.

here is my code to get error:

[Table("Users")]
public class User
        {
            [PrimaryKey, Unique]
            public int Id { get; set; }
            public string LastName { get; set; }
            public string FirstName { get; set; }
            public int Age { get; set; }
        }

.........

 string DbRootPath = ApplicationData.Current.LocalFolder.Path;
 string path = Path.Combine(DbRootPath, "users.db");
 var db = new SQLiteAsyncConnection(path);
*
*
*and when I call *

  await db.CreateTableAsync<User>();

*I recieve SQLiteException **Could not open database file:
C:\Users\Václav\AppData\Local\Packages\xxxxxxx\LocalState\users.db
(CannotOpen)*
*
*
I think it's because Unicode char (á) in my Path, but from WinRT app I am
allowed to write to folders in this user path only. In Czech is this char
in name typical and most of people has username their name.

Has anyone seen this?

Thanks,

Vaclav
--
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to