예제 #1
0
 public void add(adminlflightInformations adminlflight)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         context.AdminlFlightInformations.Add(adminlflight);
         context.SaveChanges();
     }
 }
 public void add(passangerInformation passanger)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         context.passangerInformations.Add(passanger);
         context.SaveChanges();
     }
 }
예제 #3
0
 public void add(emptyseat empty)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         context.emptyseats.Add(empty);
         context.SaveChanges();
     }
 }
예제 #4
0
 public void add(fullseat fullseats)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         context.fullseats.Add(fullseats);
         context.SaveChanges();
     }
 }
예제 #5
0
 public void Add(Flight flights)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         context.Flights.Add(flights);
         context.SaveChanges();
     }
 }
 public void delete(passangerInformation passanger)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         var entity = context.Entry(passanger);
         entity.State = EntityState.Deleted;
         context.SaveChanges();
     }
 }
예제 #7
0
 public void delete(emptyseat empty)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         var entity = context.Entry(empty);
         entity.State = EntityState.Deleted;
         context.SaveChanges();
     }
 }
예제 #8
0
 public void Update(Flight flight)
 {
     using (FlySusDataContext context = new FlySusDataContext())
     {
         var entity = context.Entry(flight);
         entity.State = EntityState.Modified;
         context.SaveChanges();
     }
 }