コード例 #1
0
 /// <summary>
 /// 创建新的 UserReservation 对象。
 /// </summary>
 /// <param name="id">ID 属性的初始值。</param>
 /// <param name="weixinOpenId">WeixinOpenId 属性的初始值。</param>
 /// <param name="reservationID">ReservationID 属性的初始值。</param>
 public static UserReservation CreateUserReservation(global::System.Int32 id, global::System.String weixinOpenId, global::System.Int32 reservationID)
 {
     UserReservation userReservation = new UserReservation();
     userReservation.ID = id;
     userReservation.WeixinOpenId = weixinOpenId;
     userReservation.ReservationID = reservationID;
     return userReservation;
 }
コード例 #2
0
 /// <summary>
 /// 用于向 UserReservation EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToUserReservation(UserReservation userReservation)
 {
     base.AddObject("UserReservation", userReservation);
 }