Entity Framework not Saving Changes into Database

c# entity-framework entity-framework-6 mysql

Popular Answer

Use

saccldb.SaveChanges()

purely due to await saccldb's async nature. When using SaveChangesAsync(), your thread will move on and leave the method before the database has been fully saved. It returns true in your situation.

I would advise against employing any async operations in a console application unless the program has a running user interface.

0
4/19/2016 8:39:21 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow