/// <summary> /// 创建新的 TripList 对象。 /// </summary> /// <param name="tripID">TripID 属性的初始值。</param> public static TripList CreateTripList(global::System.Int32 tripID) { TripList tripList = new TripList(); tripList.TripID = tripID; return tripList; }
/// <summary> /// 用于向 TripList EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToTripList(TripList tripList) { base.AddObject("TripList", tripList); }