Exemplo n.º 1
0
 /// <summary>
 /// Create a new Message object.
 /// </summary>
 /// <param name="messageID">Initial value of the MessageID property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 /// <param name="postedByUserID">Initial value of the PostedByUserID property.</param>
 /// <param name="messageRead">Initial value of the MessageRead property.</param>
 /// <param name="deleted">Initial value of the Deleted property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 /// <param name="createdByFullName">Initial value of the CreatedByFullName property.</param>
 /// <param name="lastUpdatedDate">Initial value of the LastUpdatedDate property.</param>
 /// <param name="lastUpdatedByFullName">Initial value of the LastUpdatedByFullName property.</param>
 /// <param name="messageGUID">Initial value of the MessageGUID property.</param>
 public static Message CreateMessage(global::System.Int32 messageID, global::System.Int32 userID, global::System.Int32 postedByUserID, global::System.Boolean messageRead, global::System.Boolean deleted, global::System.DateTime createdDate, global::System.String createdByFullName, global::System.DateTime lastUpdatedDate, global::System.String lastUpdatedByFullName, global::System.Guid messageGUID)
 {
     Message message = new Message();
     message.MessageID = messageID;
     message.UserID = userID;
     message.PostedByUserID = postedByUserID;
     message.MessageRead = messageRead;
     message.Deleted = deleted;
     message.CreatedDate = createdDate;
     message.CreatedByFullName = createdByFullName;
     message.LastUpdatedDate = lastUpdatedDate;
     message.LastUpdatedByFullName = lastUpdatedByFullName;
     message.MessageGUID = messageGUID;
     return message;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Messages EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMessages(Message message)
 {
     base.AddObject("Messages", message);
 }