Esempio n. 1
0
 /// <summary>
 /// 用于向 Major EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToMajor(Major major)
 {
     base.AddObject("Major", major);
 }
Esempio n. 2
0
 /// <summary>
 /// 创建新的 Major 对象。
 /// </summary>
 /// <param name="id">ID 属性的初始值。</param>
 /// <param name="name">Name 属性的初始值。</param>
 /// <param name="collegeID">CollegeID 属性的初始值。</param>
 /// <param name="collegeName">CollegeName 属性的初始值。</param>
 /// <param name="schoolID">SchoolID 属性的初始值。</param>
 /// <param name="schoolName">SchoolName 属性的初始值。</param>
 /// <param name="cityID">CityID 属性的初始值。</param>
 /// <param name="cityName">CityName 属性的初始值。</param>
 /// <param name="createBy">CreateBy 属性的初始值。</param>
 /// <param name="createDate">CreateDate 属性的初始值。</param>
 public static Major CreateMajor(global::System.Int32 id, global::System.String name, global::System.Int32 collegeID, global::System.String collegeName, global::System.Int32 schoolID, global::System.String schoolName, global::System.Int32 cityID, global::System.String cityName, global::System.String createBy, global::System.DateTime createDate)
 {
     Major major = new Major();
     major.ID = id;
     major.Name = name;
     major.CollegeID = collegeID;
     major.CollegeName = collegeName;
     major.SchoolID = schoolID;
     major.SchoolName = schoolName;
     major.CityID = cityID;
     major.CityName = cityName;
     major.CreateBy = createBy;
     major.CreateDate = createDate;
     return major;
 }