Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No DB Creation on Runtime #1253

Open
harrypotter06 opened this issue Sep 24, 2024 · 0 comments
Open

No DB Creation on Runtime #1253

harrypotter06 opened this issue Sep 24, 2024 · 0 comments

Comments

@harrypotter06
Copy link

Hello,

i am using VS 2022. So on "Debug" the NUGET work fine.
But if i start in Relesas, the Nuget didn't create DB correct.

I Build a Windows Universal App for the Store

My Code:

var db1 = new SQLiteAsyncConnection(DB_PATH);
var TW1 = await db1.CreateTableAsync<Books>();
await db1.CloseAsync();               

Claas Books:

public class Books
{
    
    [PrimaryKey, AutoIncrement]
    public int Id { get; set; }
    public string Category { get; set; }
    public string SubCategory { get; set; }
    public string Label { get; set; }
    public string Content { get; set; }
    public string CreationDate { get; set; }
    
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant