/// <summary> /// Deprecated Method for adding a new object to the Districts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDistricts(District district) { base.AddObject("Districts", district); }
/// <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; }