/// <summary> /// Deprecated Method for adding a new object to the TypeOfWorks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTypeOfWorks(TypeOfWork typeOfWork) { base.AddObject("TypeOfWorks", typeOfWork); }
/// <summary> /// Create a new TypeOfWork object. /// </summary> /// <param name="typeId">Initial value of the TypeId property.</param> /// <param name="name">Initial value of the name property.</param> public static TypeOfWork CreateTypeOfWork(global::System.Int32 typeId, global::System.String name) { TypeOfWork typeOfWork = new TypeOfWork(); typeOfWork.TypeId = typeId; typeOfWork.name = name; return typeOfWork; }