/// <summary>
 /// 复制
 /// </summary>
 public void Clone(Class entity)
 {
     this.ClassID = entity.ClassID;
         this.HeadTeacherID = entity.HeadTeacherID;
         this.ClassName = entity.ClassName;
         this.ClassDecription = entity.ClassDecription;
         this.ChineseTeacher = entity.ChineseTeacher;
         this.MathTeacher = entity.MathTeacher;
 }
 /// <summary>
 /// 创建新的 Class 对象。
 /// </summary>
 /// <param name="classID">ClassID 属性的初始值。</param>
 /// <param name="className">ClassName 属性的初始值。</param>
 public static Class CreateClass(global::System.Int32 classID, global::System.String className)
 {
     Class @class = new Class();
     @class.ClassID = classID;
     @class.ClassName = className;
     return @class;
 }
 /// <summary>
 /// 用于向 Classes EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToClasses(Class @class)
 {
     base.AddObject("Classes", @class);
 }