Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Districts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDistricts(District district)
 {
     base.AddObject("Districts", district);
 }
Example #2
0
 /// <summary>
 /// Create a new District object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static District CreateDistrict(global::System.Int32 id, global::System.String title, global::System.Byte[] rowVersion)
 {
     District district = new District();
     district.Id = id;
     district.Title = title;
     district.RowVersion = rowVersion;
     return district;
 }