/// <summary> /// Deprecated Method for adding a new object to the RailCarHistories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRailCarHistories(RailCarHistory railCarHistory) { base.AddObject("RailCarHistories", railCarHistory); }
/// <summary> /// Create a new RailCarHistory object. /// </summary> /// <param name="historyID">Initial value of the HistoryID property.</param> /// <param name="carID">Initial value of the CarID property.</param> /// <param name="yardID">Initial value of the YardID property.</param> /// <param name="departmentId">Initial value of the DepartmentId property.</param> /// <param name="historyTypeId">Initial value of the HistoryTypeId property.</param> public static RailCarHistory CreateRailCarHistory(global::System.Int32 historyID, global::System.Int32 carID, global::System.Int32 yardID, global::System.Int32 departmentId, global::System.Int32 historyTypeId) { RailCarHistory railCarHistory = new RailCarHistory(); railCarHistory.HistoryID = historyID; railCarHistory.CarID = carID; railCarHistory.YardID = yardID; railCarHistory.DepartmentId = departmentId; railCarHistory.HistoryTypeId = historyTypeId; return railCarHistory; }