Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Course object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 public static Course CreateCourse(global::System.Int32 id, global::System.String title)
 {
     Course course = new Course();
     course.Id = id;
     course.Title = title;
     return course;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Create a new Course object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static Course CreateCourse(global::System.Int32 id, global::System.String title, global::System.Byte[] rowVersion)
 {
     Course course = new Course();
     course.Id = id;
     course.Title = title;
     course.RowVersion = rowVersion;
     return course;
 }