Exemplo n.º 1
0
 //----------------------------------------------------
 //Update AircraftOwner
 public static void updateAircraftOwner(AircraftOwner aircraft_owner, AircraftOwner newValues)
 {
     aircraft_owner.aircraftOwner_firstName = newValues.aircraftOwner_firstName;
     aircraft_owner.aircraftOwner_lastName = newValues.aircraftOwner_lastName;
     aircraft_owner.aircraftOwner_address = newValues.aircraftOwner_address;
     aircraft_owner.aircraftOwner_mail = newValues.aircraftOwner_mail;
     aircraft_owner.aircraftOwner_phone = newValues.aircraftOwner_phone;
     DbConn.CONN.SaveChanges();
 }
Exemplo n.º 2
0
 //-------------------------------------------------------------------------------
 static object aircraftOwnerToObject(AircraftOwner aircraftOwner)
 {
     return new
     {
         aircraftOwner_id = aircraftOwner.aircraftOwner_id,
         aircraftOwner_firstName = aircraftOwner.aircraftOwner_firstName,
         aircraftOwner_lastName = aircraftOwner.aircraftOwner_lastName,
         aircraftOwner_address = aircraftOwner.aircraftOwner_address,
         aircraftOwner_phone = aircraftOwner.aircraftOwner_phone,
         aircraftOwner_mail = aircraftOwner.aircraftOwner_mail
     };
 }
Exemplo n.º 3
0
 //----------------------------------------------------
 //Create AircraftOwner
 public static void createAircraftOwner(AircraftOwner aircraft_owner)
 {
     DbConn.CONN.AircraftOwner.AddObject(aircraft_owner);
     DbConn.CONN.SaveChanges();
 }
 /// <summary>
 /// Méthode déconseillée pour ajouter un nouvel objet à l'EntitySet AircraftOwner. Utilisez la méthode .Add de la propriété ObjectSet&lt;T&gt; associée à la place.
 /// </summary>
 public void AddToAircraftOwner(AircraftOwner aircraftOwner)
 {
     base.AddObject("AircraftOwner", aircraftOwner);
 }
 /// <summary>
 /// Créez un nouvel objet AircraftOwner.
 /// </summary>
 /// <param name="aircraftOwner_id">Valeur initiale de la propriété aircraftOwner_id.</param>
 public static AircraftOwner CreateAircraftOwner(global::System.Int64 aircraftOwner_id)
 {
     AircraftOwner aircraftOwner = new AircraftOwner();
     aircraftOwner.aircraftOwner_id = aircraftOwner_id;
     return aircraftOwner;
 }