/// <summary> /// Deprecated Method for adding a new object to the Alerts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAlerts(Alert alert) { base.AddObject("Alerts", alert); }
/// <summary> /// Create a new Alert object. /// </summary> /// <param name="alertId">Initial value of the AlertId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="message">Initial value of the Message property.</param> /// <param name="type">Initial value of the Type property.</param> /// <param name="timestamp">Initial value of the Timestamp property.</param> /// <param name="isDismissed">Initial value of the IsDismissed property.</param> /// <param name="isDeleted">Initial value of the IsDeleted property.</param> public static Alert CreateAlert(global::System.Guid alertId, global::System.Guid userId, global::System.String message, global::System.String type, global::System.DateTime timestamp, global::System.Boolean isDismissed, global::System.Boolean isDeleted) { Alert alert = new Alert(); alert.AlertId = alertId; alert.UserId = userId; alert.Message = message; alert.Type = type; alert.Timestamp = timestamp; alert.IsDismissed = isDismissed; alert.IsDeleted = isDeleted; return alert; }