Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Courses EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCourses(Course course)
 {
     base.AddObject("Courses", course);
 }
Пример #2
0
 /// <summary>
 /// Create a new Course object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="duration">Initial value of the Duration property.</param>
 public static Course CreateCourse(global::System.Int32 id, global::System.String name, global::System.Int32 duration)
 {
     Course course = new Course();
     course.Id = id;
     course.Name = name;
     course.Duration = duration;
     return course;
 }