/// <summary> /// Create a new Site object. /// </summary> /// <param name="siteId">Initial value of the SiteId property.</param> /// <param name="churchId">Initial value of the ChurchId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="created">Initial value of the Created property.</param> /// <param name="changed">Initial value of the Changed property.</param> public static Site CreateSite(global::System.Int32 siteId, global::System.Int32 churchId, global::System.String name, global::System.DateTime created, global::System.DateTime changed) { Site site = new Site(); site.SiteId = siteId; site.ChurchId = churchId; site.Name = name; site.Created = created; site.Changed = changed; return site; }
/// <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); }