/// <summary> /// 创建新的 ReservationContent 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="name">Name 属性的初始值。</param> /// <param name="content">Content 属性的初始值。</param> /// <param name="reservationID">ReservationID 属性的初始值。</param> public static ReservationContent CreateReservationContent(global::System.Int32 id, global::System.String name, global::System.String content, global::System.Int32 reservationID) { ReservationContent reservationContent = new ReservationContent(); reservationContent.ID = id; reservationContent.Name = name; reservationContent.Content = content; reservationContent.ReservationID = reservationID; return reservationContent; }
/// <summary> /// 用于向 ReservationContent EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToReservationContent(ReservationContent reservationContent) { base.AddObject("ReservationContent", reservationContent); }