Exemple #1
0
        /// <summary>
        /// Create a new Sticky object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="clientDatabaseId">Initial value of the ClientDatabaseId property.</param>
        /// <param name="channelId">Initial value of the ChannelId property.</param>
        /// <param name="stickTime">Initial value of the StickTime property.</param>
        /// <param name="creation">Initial value of the Creation property.</param>
        public static Sticky CreateSticky(global::System.Guid id, global::System.Int32 clientDatabaseId, global::System.Int32 channelId, global::System.Int32 stickTime, global::System.DateTime creation)
        {
            Sticky sticky = new Sticky();

            sticky.Id = id;
            sticky.ClientDatabaseId = clientDatabaseId;
            sticky.ChannelId        = channelId;
            sticky.StickTime        = stickTime;
            sticky.Creation         = creation;
            return(sticky);
        }
Exemple #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Sticky EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSticky(Sticky sticky)
 {
     base.AddObject("Sticky", sticky);
 }