/// <summary> /// 將新物件加入 country EntitySet 的方法已被取代。請考慮改為使用關聯的 ObjectSet<T> 屬性的 .Add 方法。 /// </summary> public void AddTocountry(country country) { base.AddObject("country", country); }
/// <summary> /// 建立新 country 物件。 /// </summary> /// <param name="country_id">country_id 屬性的初始值。</param> /// <param name="country_name">country_name 屬性的初始值。</param> public static country Createcountry(global::System.Int32 country_id, global::System.String country_name) { country country = new country(); country.country_id = country_id; country.country_name = country_name; return country; }