コード例 #1
0
 /// <summary>
 /// Create a new Occupation object.
 /// </summary>
 /// <param name="occupationId">Initial value of the OccupationId property.</param>
 /// <param name="type">Initial value of the Type property.</param>
 public static Occupation CreateOccupation(global::System.Int32 occupationId, global::System.String type)
 {
     Occupation occupation = new Occupation();
     occupation.OccupationId = occupationId;
     occupation.Type = type;
     return occupation;
 }
コード例 #2
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);
 }