Exemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Occupations EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOccupations(Occupation occupation)
 {
     base.AddObject("Occupations", occupation);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new Occupation object.
 /// </summary>
 /// <param name="occupID">Initial value of the OccupID property.</param>
 public static Occupation CreateOccupation(global::System.Int32 occupID)
 {
     Occupation occupation = new Occupation();
     occupation.OccupID = occupID;
     return occupation;
 }