/// <summary> /// 用于向 School EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToSchool(School school) { base.AddObject("School", school); }
/// <summary> /// 创建新的 School 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="name">Name 属性的初始值。</param> /// <param name="cityID">CityID 属性的初始值。</param> /// <param name="cityName">CityName 属性的初始值。</param> /// <param name="is985">Is985 属性的初始值。</param> /// <param name="is211">Is211 属性的初始值。</param> /// <param name="isYiben">IsYiben 属性的初始值。</param> /// <param name="createBy">CreateBy 属性的初始值。</param> /// <param name="createDate">CreateDate 属性的初始值。</param> public static School CreateSchool(global::System.Int32 id, global::System.String name, global::System.Int32 cityID, global::System.String cityName, global::System.Boolean is985, global::System.Boolean is211, global::System.Boolean isYiben, global::System.String createBy, global::System.DateTime createDate) { School school = new School(); school.ID = id; school.Name = name; school.CityID = cityID; school.CityName = cityName; school.Is985 = is985; school.Is211 = is211; school.IsYiben = isYiben; school.CreateBy = createBy; school.CreateDate = createDate; return school; }