Scipio
Scipio
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
within my model class should i store a reference to the entity? something like this: public class UserModel(){ UserEntity userEntity; public UserModel(string id, string name, ){ userEntity=new UserEntity(id, name); } }
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
@Jimmacle hi i am bit confused with implementing this entity to model thing
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
ok that makes sense
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
ok and whats the benefits of doing it that way
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
ok nvm its cause im using sqlite
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
"[!WARNING] ConstraintName and ConstraintProperties will not be populated when using SQLite."
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
No description
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
thats what i have in my OnConfiguring which is what the guide says to do
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
optionsBuilder.UseExceptionProcessor();
optionsBuilder.UseSqlite("Data Source=database27.db"); optionsBuilder.EnableSensitiveDataLogging(true);
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
i'll double check
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
its null for some reason
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
No description
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
Do you have any examples or tutorials on how to do this for a beginner?
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
With that package installed its now saying I have reference constraint exception
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
No description
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
thats the stack trace for the inner exception
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader() at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
i thought that's what i was doing with all this mvvm stuff (im a winforms guy moving over to winui )
52 replies
CC#
Created by Scipio on 10/31/2024 in #help
'FOREIGN KEY constraint failed in Sqlite using Entity Framework Core and WinUi 3
how would i go about decoupling my code more
52 replies