private void Application_Launching(object sender, LaunchingEventArgs e) { using (CantiContext db = new CantiContext("isostore:/canti.sdf")) { if (db.DatabaseExists() == false) { // Create the database. db.CantoTable.InsertOnSubmit(new Canto() { Name = "CantoTest" }); db.SubmitChanges(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)