예제 #1
0
 public static int SaveData(tbPlane data)
 {
     using (DbAirlineEntities obj = new DbAirlineEntities()) {
         obj.tbPlanes.Add(data);
         obj.SaveChanges();
         return(data.ID);
     }
 }
예제 #2
0
 public static int Ins(tbPlane data)
 {
     return(SaveData(data));
 }