コード例 #1
0
 /// <summary>
 /// Create a new Helicopter object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="rotorConfiguration">Initial value of the RotorConfiguration property.</param>
 public static Helicopter CreateHelicopter(global::System.Int32 id, global::System.String name, global::System.String rotorConfiguration)
 {
     Helicopter helicopter = new Helicopter();
     helicopter.Id = id;
     helicopter.Name = name;
     helicopter.RotorConfiguration = rotorConfiguration;
     return helicopter;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Helicopters EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToHelicopters(Helicopter helicopter)
 {
     base.AddObject("Helicopters", helicopter);
 }