コード例 #1
0
 /// <summary>Returns the Semester with the provided primary key value.</summary>
 /// <param name="id">The primary key of the Semester to fetch.</param>
 /// <param name="context">The data context to use.</param>
 /// <returns>A single Semester, or null if it does not exist.</returns>
 public static Semester GetByID(SampleObjectContext context, int id)
 {
     return(Semester.GetByID(context, id));
 }
コード例 #2
0
 public static Semester LoadSemesterFromDataContext(this Semester obj, SampleObjectContext dataContext)
 {
     return(Semester.GetByID(dataContext, obj.ID));
 }
コード例 #3
0
 /// <summary>Returns the Semester with the provided primary key value.</summary>
 /// <param name="id">The primary key of the Semester to fetch.</param>
 /// <returns>A single Semester, or null if it does not exist.</returns>
 public static Semester GetByID(int id)
 {
     return(Semester.GetByID(id));
 }