Exemplo n.º 1
0
 public static string CreateClassString(Class aClass)
 {
     return aClass.Subject + aClass.Course + "-" + aClass;
 }
Exemplo n.º 2
0
 public static string BuildClassReviewUrl(Class aClass)
 {
     return "/" + aClass.UniversityId + "/Class/Details/" + ToUrlFriendly(aClass.Subject + " " + aClass.Course);
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Classes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToClasses(Class @class)
 {
     base.AddObject("Classes", @class);
 }
 /// <summary>
 /// Create a new Class object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="universityId">Initial value of the UniversityId property.</param>
 /// <param name="createdByUserId">Initial value of the CreatedByUserId property.</param>
 /// <param name="subject">Initial value of the Subject property.</param>
 /// <param name="course">Initial value of the Course property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="dateTimeStamp">Initial value of the DateTimeStamp property.</param>
 public static Class CreateClass(global::System.Int32 id, global::System.String universityId, global::System.Int32 createdByUserId, global::System.String subject, global::System.String course, global::System.String title, global::System.DateTime dateTimeStamp)
 {
     Class @class = new Class();
     @class.Id = id;
     @class.UniversityId = universityId;
     @class.CreatedByUserId = createdByUserId;
     @class.Subject = subject;
     @class.Course = course;
     @class.Title = title;
     @class.DateTimeStamp = dateTimeStamp;
     return @class;
 }
Exemplo n.º 5
0
 public static string ClassBoardReplySubject(Class aClass)
 {
     return "UofMe: New reply to your class question in " + aClass.Course;
 }