/// <summary> /// 创建新的 College 对象。 /// </summary> /// <param name="collegeId">CollegeId 属性的初始值。</param> /// <param name="name">Name 属性的初始值。</param> /// <param name="schoolId">SchoolId 属性的初始值。</param> /// <param name="createDate">CreateDate 属性的初始值。</param> /// <param name="modifyDate">ModifyDate 属性的初始值。</param> /// <param name="status">Status 属性的初始值。</param> public static College CreateCollege(global::System.Int32 collegeId, global::System.String name, global::System.Int32 schoolId, global::System.DateTime createDate, global::System.DateTime modifyDate, global::System.Int32 status) { College college = new College(); college.CollegeId = collegeId; college.Name = name; college.SchoolId = schoolId; college.CreateDate = createDate; college.ModifyDate = modifyDate; college.Status = status; return college; }
/// <summary> /// 用于向 College EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToCollege(College college) { base.AddObject("College", college); }