Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ExerciseSet EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToExerciseSet(Exercise exercise)
 {
     base.AddObject("ExerciseSet", exercise);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Exercise object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="grade">Initial value of the Grade property.</param>
 /// <param name="subject">Initial value of the Subject property.</param>
 /// <param name="chapter">Initial value of the Chapter property.</param>
 /// <param name="knowledgePoint">Initial value of the KnowledgePoint property.</param>
 public static Exercise CreateExercise(global::System.Guid id, global::System.String grade, global::System.String subject, global::System.String chapter, global::System.String knowledgePoint)
 {
     Exercise exercise = new Exercise();
     exercise.Id = id;
     exercise.Grade = grade;
     exercise.Subject = subject;
     exercise.Chapter = chapter;
     exercise.KnowledgePoint = knowledgePoint;
     return exercise;
 }