Inserting/Updating Entity Framework 4 using SQL CE 3.5
Posted on 2010-09-22
I've setup a project using a Entity model built from scratch and added a SQLCE database as the backend. Everything seems fine except for when I call "entity.SaveChanges();" I have set this in a loop hoping to create 10 records and nothing happens. How else would I insert/update a SQLCE database using Entity Framework 4? Thnaks
using (ModelContainer entity = new ModelContainer())
Repository repository = new Repository
ID = Guid.NewGuid(), created = DateTime.Now, source = "This is a source document" + i, deleted = false, filename = "Test" + i + ".pdf"