/// <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; }
/// <summary> /// Deprecated Method for adding a new object to the Occupations EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOccupations(Occupation occupation) { base.AddObject("Occupations", occupation); }