예제 #1
0
 // 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();
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the StatusToStatus EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStatusToStatus(StatusToStatus statusToStatus)
 {
     base.AddObject("StatusToStatus", statusToStatus);
 }
예제 #3
0
 /// <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;
 }
예제 #4
0
 // 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;
 }