示例#1
0
 /// <summary>
 /// 用于向 Sys_HotelComm EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToSys_HotelComm(Sys_HotelComm sys_HotelComm)
 {
     base.AddObject("Sys_HotelComm", sys_HotelComm);
 }
示例#2
0
 /// <summary>
 /// 创建新的 Sys_HotelComm 对象。
 /// </summary>
 /// <param name="commID">CommID 属性的初始值。</param>
 /// <param name="userID">UserID 属性的初始值。</param>
 /// <param name="userName">UserName 属性的初始值。</param>
 /// <param name="hotelID">HotelID 属性的初始值。</param>
 /// <param name="content">Content 属性的初始值。</param>
 /// <param name="ip">Ip 属性的初始值。</param>
 /// <param name="addTime">AddTime 属性的初始值。</param>
 /// <param name="point">Point 属性的初始值。</param>
 public static Sys_HotelComm CreateSys_HotelComm(global::System.Int32 commID, global::System.Int32 userID, global::System.String userName, global::System.Int32 hotelID, global::System.String content, global::System.String ip, global::System.DateTime addTime, global::System.Int32 point)
 {
     Sys_HotelComm sys_HotelComm = new Sys_HotelComm();
     sys_HotelComm.CommID = commID;
     sys_HotelComm.UserID = userID;
     sys_HotelComm.UserName = userName;
     sys_HotelComm.HotelID = hotelID;
     sys_HotelComm.Content = content;
     sys_HotelComm.Ip = ip;
     sys_HotelComm.AddTime = addTime;
     sys_HotelComm.Point = point;
     return sys_HotelComm;
 }