コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Sectors EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSectors(Sector sector)
 {
     base.AddObject("Sectors", sector);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Sector object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="sectorName">Initial value of the SectorName property.</param>
 public static Sector CreateSector(global::System.Int32 id, global::System.String sectorName)
 {
     Sector sector = new Sector();
     sector.Id = id;
     sector.SectorName = sectorName;
     return sector;
 }