/// <summary> /// Deprecated Method for adding a new object to the SolutionSet EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSolutionSet(Solution solution) { base.AddObject("SolutionSet", solution); }
/// <summary> /// Create a new Solution object. /// </summary> /// <param name="solutionId">Initial value of the SolutionId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="minArea">Initial value of the MinArea property.</param> /// <param name="maxArea">Initial value of the MaxArea property.</param> /// <param name="boundaryArea">Initial value of the BoundaryArea property.</param> public static Solution CreateSolution(global::System.Int32 solutionId, global::System.String name, global::System.Double minArea, global::System.Double maxArea, global::System.Double boundaryArea) { Solution solution = new Solution(); solution.SolutionId = solutionId; solution.Name = name; solution.MinArea = minArea; solution.MaxArea = maxArea; solution.BoundaryArea = boundaryArea; return solution; }
public void SelectSolution(OrderFlow order,Solution solu) { foreach (Apartment apt in order.Apartment) { apt.SellStateEnum = SellState_Enum.Locked; } order.Solution = solu.Name; }