public StatusData(Status status) : this() { if (status == null) { return; } this.StatusId = status.StatusId; this.Name = status.Name; this.BackColor = status.BackColor; this.ForeColor = status.ForeColor; this.IsActive = status.IsActive; }
/// <summary> /// Create a new Status object. /// </summary> /// <param name="statusId">Initial value of the StatusId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="isStarted">Initial value of the IsStarted property.</param> /// <param name="isCompleted">Initial value of the IsCompleted property.</param> /// <param name="isActive">Initial value of the IsActive property.</param> /// <param name="isArchived">Initial value of the IsArchived property.</param> /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> /// <param name="ordinal">Initial value of the Ordinal property.</param> /// <param name="foreColor">Initial value of the ForeColor property.</param> /// <param name="backColor">Initial value of the BackColor property.</param> public static Status CreateStatus(global::System.Int32 statusId, global::System.String name, global::System.String description, global::System.Boolean isStarted, global::System.Boolean isCompleted, global::System.Boolean isActive, global::System.Boolean isArchived, global::System.Int32 modifiedBy, global::System.DateTime modifiedDate, global::System.Int32 createdBy, global::System.DateTime createdDate, global::System.Int32 ordinal, global::System.String foreColor, global::System.String backColor) { Status status = new Status(); status.StatusId = statusId; status.Name = name; status.Description = description; status.IsStarted = isStarted; status.IsCompleted = isCompleted; status.IsActive = isActive; status.IsArchived = isArchived; status.ModifiedBy = modifiedBy; status.ModifiedDate = modifiedDate; status.CreatedBy = createdBy; status.CreatedDate = createdDate; status.Ordinal = ordinal; status.ForeColor = foreColor; status.BackColor = backColor; return status; }
/// <summary> /// Deprecated Method for adding a new object to the Statuses EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStatuses(Status status) { base.AddObject("Statuses", status); }