Ejemplo n.º 1
0
 /// <summary>
 /// 创建新的 Group_Grade 对象。
 /// </summary>
 /// <param name="autoId">AutoId 属性的初始值。</param>
 /// <param name="gid">Gid 属性的初始值。</param>
 /// <param name="gradeId">GradeId 属性的初始值。</param>
 /// <param name="gradeName">GradeName 属性的初始值。</param>
 public static Group_Grade CreateGroup_Grade(global::System.Int32 autoId, global::System.Int32 gid, global::System.Int32 gradeId, global::System.String gradeName)
 {
     Group_Grade group_Grade = new Group_Grade();
     group_Grade.AutoId = autoId;
     group_Grade.Gid = gid;
     group_Grade.GradeId = gradeId;
     group_Grade.GradeName = gradeName;
     return group_Grade;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 用于向 Group_Grade EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToGroup_Grade(Group_Grade group_Grade)
 {
     base.AddObject("Group_Grade", group_Grade);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 插入游戏团初始化成员级别
 /// </summary>
 /// <param name="gid"></param>
 /// <returns></returns>
 public int SetIniGroupGrade(int gid)
 {
     int rst = 1;
     IList<KeyValuePair<int, string>> glist = Kt.GameGroup.Model.Enums.GroupUserGrade.EnumsHelper<Kt.GameGroup.Model.Enums.GroupUserGrade.游戏团成员级别>.GetList();
     foreach (KeyValuePair<int, string> kv in glist)
     {
         Kt.GameGroup.Data.Group_Grade info = new Kt.GameGroup.Data.Group_Grade();
         info.Gid = gid;
         info.GradeId = kv.Key + 1;
         info.GradeName = kv.Value;
         this.group_GradeReRepository.Add(info);
     }
     return rst;
 }