/// <summary>
 /// Create a new UserStatus object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="universityId">Initial value of the UniversityId property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="everyone">Initial value of the Everyone property.</param>
 /// <param name="dateTimeStamp">Initial value of the DateTimeStamp property.</param>
 /// <param name="deleted">Initial value of the Deleted property.</param>
 public static UserStatus CreateUserStatus(global::System.Int32 id, global::System.Int32 userId, global::System.String universityId, global::System.String status, global::System.Boolean everyone, global::System.DateTime dateTimeStamp, global::System.Boolean deleted)
 {
     UserStatus userStatus = new UserStatus();
     userStatus.Id = id;
     userStatus.UserId = userId;
     userStatus.UniversityId = universityId;
     userStatus.Status = status;
     userStatus.Everyone = everyone;
     userStatus.DateTimeStamp = dateTimeStamp;
     userStatus.Deleted = deleted;
     return userStatus;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the UserStatuses EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserStatuses(UserStatus userStatus)
 {
     base.AddObject("UserStatuses", userStatus);
 }
 public static bool IsAllowedToDelete(UserInformationModel<User> aCurrentUser, UserStatus aUserStatus)
 {
     return aCurrentUser != null && aCurrentUser.Details.Id == aUserStatus.UserId;
 }