Пример #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();
 }
Пример #2
0
 /// <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);
 }
Пример #3
0
 // Default contructor
 public IterationModel()
 {
     this.IsNewItem = true;
     this._iteration = new Iteration();
 }
Пример #4
0
 /// <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;
 }
Пример #5
0
 // Delete a existed Iteration
 public void DeleteIteration(Iteration _iteration)
 {
     unitOfWork.Delete<Iteration>(_iteration);
 }
Пример #6
0
 // Add a new Iteration
 public Iteration AddIteration(Iteration _iteration)
 {
     unitOfWork.Add<Iteration>(_iteration);
     return _iteration;
 }
Пример #7
0
 // Update a existed Iteration
 public Iteration UpdateIteration(Iteration _iteration)
 {
     unitOfWork.Update<Iteration>(_iteration);
     return _iteration;
 }
Пример #8
0
 // Refresh an existed Iteration
 public Iteration RefeshIteration(Iteration _iteration)
 {
     unitOfWork.Refresh<Iteration>(_iteration);
     return _iteration;
 }