/// <summary> /// Deprecated Method for adding a new object to the Sites EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSites(Site site) { base.AddObject("Sites", site); }
/// <summary> /// Create a new Site object. /// </summary> /// <param name="siteID">Initial value of the SiteID property.</param> /// <param name="siteUrl">Initial value of the SiteUrl property.</param> public static Site CreateSite(global::System.Int32 siteID, global::System.String siteUrl) { Site site = new Site(); site.SiteID = siteID; site.SiteUrl = siteUrl; return site; }