コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Achievements EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAchievements(Achievement achievement)
 {
     base.AddObject("Achievements", achievement);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Achievement object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="score">Initial value of the Score property.</param>
 /// <param name="year">Initial value of the Year property.</param>
 /// <param name="courseType">Initial value of the CourseType property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="highSchoolId">Initial value of the HighSchoolId property.</param>
 /// <param name="provinceId">Initial value of the ProvinceId property.</param>
 public static Achievement CreateAchievement(global::System.Int32 id, global::System.Double score, global::System.Int32 year, global::System.String courseType, global::System.Guid userId, global::System.Guid highSchoolId, global::System.Guid provinceId)
 {
     Achievement achievement = new Achievement();
     achievement.Id = id;
     achievement.Score = score;
     achievement.Year = year;
     achievement.CourseType = courseType;
     achievement.UserId = userId;
     achievement.HighSchoolId = highSchoolId;
     achievement.ProvinceId = provinceId;
     return achievement;
 }
コード例 #3
0
 /// <summary>
 /// Create a new Achievement object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="score">Initial value of the Score property.</param>
 public static Achievement CreateAchievement(global::System.Guid userId, global::System.Double score)
 {
     Achievement achievement = new Achievement();
     achievement.UserId = userId;
     achievement.Score = score;
     return achievement;
 }