/// <summary>
        /// Create a new Districts object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        /// <param name="externalId">Initial value of the ExternalId property.</param>
        public static Districts CreateDistricts(global::System.Int32 id, global::System.String name, global::System.Guid externalId)
        {
            Districts districts = new Districts();

            districts.Id         = id;
            districts.Name       = name;
            districts.ExternalId = externalId;
            return(districts);
        }
 /// <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(Districts districts)
 {
     base.AddObject("Districts", districts);
 }