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