/// <summary> /// Deprecated Method for adding a new object to the Allocations EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAllocations(Allocation allocation) { base.AddObject("Allocations", allocation); }
/// <summary> /// Create a new Allocation object. /// </summary> /// <param name="projectID">Initial value of the ProjectID property.</param> /// <param name="empID">Initial value of the EmpID property.</param> /// <param name="allocationId">Initial value of the AllocationId property.</param> public static Allocation CreateAllocation(global::System.Int32 projectID, global::System.Int32 empID, global::System.Int32 allocationId) { Allocation allocation = new Allocation(); allocation.ProjectID = projectID; allocation.EmpID = empID; allocation.AllocationId = allocationId; return allocation; }