public void DBSave() { using (GCDBContext dbc = new GCDBContext(CfgData2.ConStr)) { Cheat cheat = new Cheat() { FileName = @"c:\test" }; dbc.Cheats.Add(cheat); dbc.SaveChanges(); } }
public void DBSave() { using (GCDBContext dbc=new GCDBContext(CfgData2.ConStr)) { Cheat cheat = new Cheat() { FileName = @"c:\test" }; dbc.Cheats.Add(cheat); dbc.SaveChanges(); } }