// Default contructor that set entity to field public StatusToStatusModel(StatusToStatus statustostatus) { this._status_to_status = statustostatus; this._status_id = statustostatus.StatusId; this._link_to_status_id = statustostatus.LinkToStatusId; this._originalStatusToStatus = statustostatus.DeepClone(); }
/// <summary> /// Deprecated Method for adding a new object to the StatusToStatus EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStatusToStatus(StatusToStatus statusToStatus) { base.AddObject("StatusToStatus", statusToStatus); }
/// <summary> /// Create a new StatusToStatus object. /// </summary> /// <param name="statusId">Initial value of the StatusId property.</param> /// <param name="linkToStatusId">Initial value of the LinkToStatusId property.</param> public static StatusToStatus CreateStatusToStatus(global::System.Int32 statusId, global::System.Int32 linkToStatusId) { StatusToStatus statusToStatus = new StatusToStatus(); statusToStatus.StatusId = statusId; statusToStatus.LinkToStatusId = linkToStatusId; return statusToStatus; }
// Default contructor public StatusToStatusModel() { this.IsNewItem = true; this._status_to_status = new StatusToStatus(); }
// Delete a existed StatusToStatus public void DeleteStatusToStatus(StatusToStatus _statusToStatus) { unitOfWork.Delete<StatusToStatus>(_statusToStatus); }
// Add a new StatusToStatus public StatusToStatus AddStatusToStatus(StatusToStatus _statusToStatus) { unitOfWork.Add<StatusToStatus>(_statusToStatus); return _statusToStatus; }
// Update a existed StatusToStatus public StatusToStatus UpdateStatusToStatus(StatusToStatus _statusToStatus) { unitOfWork.Update<StatusToStatus>(_statusToStatus); return _statusToStatus; }
// Refresh an existed StatusToStatus public StatusToStatus RefeshStatusToStatus(StatusToStatus _statusToStatus) { unitOfWork.Refresh<StatusToStatus>(_statusToStatus); return _statusToStatus; }