Esempio n. 1
0
 /// <summary>
 /// 创建新的 Achievement 对象。
 /// </summary>
 /// <param name="acid">Acid 属性的初始值。</param>
 /// <param name="title">Title 属性的初始值。</param>
 /// <param name="description">Description 属性的初始值。</param>
 public static Achievement CreateAchievement(global::System.Int64 acid, global::System.String title, global::System.String description)
 {
     Achievement achievement = new Achievement();
     achievement.Acid = acid;
     achievement.Title = title;
     achievement.Description = description;
     return achievement;
 }
Esempio n. 2
0
 /// <summary>
 /// 用于向 Achievements EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToAchievements(Achievement achievement)
 {
     base.AddObject("Achievements", achievement);
 }