Beispiel #1
0
 // Default contructor that set entity to field
 public IterationModel(Iteration iteration)
 {
     this._iteration = iteration;
     this._id = iteration.Id;
     this._name = iteration.Name;
     this._originalIteration = iteration.DeepClone();
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Iteration EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToIteration(Iteration iteration)
 {
     base.AddObject("Iteration", iteration);
 }
Beispiel #3
0
 // Default contructor
 public IterationModel()
 {
     this.IsNewItem = true;
     this._iteration = new Iteration();
 }
 /// <summary>
 /// Create a new Iteration object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 public static Iteration CreateIteration(global::System.Int32 id)
 {
     Iteration iteration = new Iteration();
     iteration.Id = id;
     return iteration;
 }
 // Delete a existed Iteration
 public void DeleteIteration(Iteration _iteration)
 {
     unitOfWork.Delete<Iteration>(_iteration);
 }
 // Add a new Iteration
 public Iteration AddIteration(Iteration _iteration)
 {
     unitOfWork.Add<Iteration>(_iteration);
     return _iteration;
 }
 // Update a existed Iteration
 public Iteration UpdateIteration(Iteration _iteration)
 {
     unitOfWork.Update<Iteration>(_iteration);
     return _iteration;
 }
 // Refresh an existed Iteration
 public Iteration RefeshIteration(Iteration _iteration)
 {
     unitOfWork.Refresh<Iteration>(_iteration);
     return _iteration;
 }