コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Sites EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSites(Site site)
 {
     base.AddObject("Sites", site);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Site object.
 /// </summary>
 /// <param name="siteID">Initial value of the SiteID property.</param>
 /// <param name="siteCode">Initial value of the SiteCode property.</param>
 /// <param name="siteName">Initial value of the SiteName property.</param>
 /// <param name="latitude">Initial value of the Latitude property.</param>
 /// <param name="longitude">Initial value of the Longitude property.</param>
 /// <param name="latLongDatumID">Initial value of the LatLongDatumID property.</param>
 public static Site CreateSite(global::System.Int32 siteID, global::System.String siteCode, global::System.String siteName, global::System.Double latitude, global::System.Double longitude, global::System.Int32 latLongDatumID)
 {
     Site site = new Site();
     site.SiteID = siteID;
     site.SiteCode = siteCode;
     site.SiteName = siteName;
     site.Latitude = latitude;
     site.Longitude = longitude;
     site.LatLongDatumID = latLongDatumID;
     return site;
 }