예제 #1
0
 /// <summary>
 /// Create a new Municipality object.
 /// </summary>
 /// <param name="idMunicipality">Initial value of the idMunicipality property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="municipalityCode">Initial value of the MunicipalityCode property.</param>
 /// <param name="idDistrict">Initial value of the idDistrict property.</param>
 public static Municipality CreateMunicipality(global::System.Int32 idMunicipality, global::System.String name, global::System.String municipalityCode, global::System.Int32 idDistrict)
 {
     Municipality municipality = new Municipality();
     municipality.idMunicipality = idMunicipality;
     municipality.Name = name;
     municipality.MunicipalityCode = municipalityCode;
     municipality.idDistrict = idDistrict;
     return municipality;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Municipalities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMunicipalities(Municipality municipality)
 {
     base.AddObject("Municipalities", municipality);
 }