/// <summary>
 /// Create a new BoardReply object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="boardId">Initial value of the BoardId property.</param>
 /// <param name="message">Initial value of the Message property.</param>
 /// <param name="dateTimeStamp">Initial value of the DateTimeStamp property.</param>
 /// <param name="deleted">Initial value of the Deleted property.</param>
 public static BoardReply CreateBoardReply(global::System.Int32 id, global::System.Int32 userId, global::System.Int32 boardId, global::System.String message, global::System.DateTime dateTimeStamp, global::System.Boolean deleted)
 {
     BoardReply boardReply = new BoardReply();
     boardReply.Id = id;
     boardReply.UserId = userId;
     boardReply.BoardId = boardId;
     boardReply.Message = message;
     boardReply.DateTimeStamp = dateTimeStamp;
     boardReply.Deleted = deleted;
     return boardReply;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the BoardReplies EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBoardReplies(BoardReply boardReply)
 {
     base.AddObject("BoardReplies", boardReply);
 }
 public static bool IsAllowedToDelete(UserInformationModel<User> aCurrentUser, BoardReply aBoardReply)
 {
     return aCurrentUser !=null && (aCurrentUser.Details.Id == aBoardReply.Board.OwnerUserId
         || aCurrentUser.Details.Id == aBoardReply.UserId
         || PermissionHelper<User>.AllowedToPerformAction(aCurrentUser, SocialPermission.Delete_Any_Board_Reply));
 }