Пример #1
0
 /// <summary>
 /// Create a new ZipInfo object.
 /// </summary>
 /// <param name="zipInfoId">Initial value of the ZipInfoId property.</param>
 /// <param name="zipCode">Initial value of the ZipCode property.</param>
 /// <param name="stateCode">Initial value of the StateCode property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="latitude">Initial value of the Latitude property.</param>
 /// <param name="longitude">Initial value of the Longitude property.</param>
 /// <param name="population">Initial value of the Population property.</param>
 /// <param name="isDeleted">Initial value of the IsDeleted property.</param>
 public static ZipInfo CreateZipInfo(global::System.Int32 zipInfoId, global::System.Int32 zipCode, global::System.String stateCode, global::System.String city, global::System.Double latitude, global::System.Double longitude, global::System.Int32 population, global::System.Boolean isDeleted)
 {
     ZipInfo zipInfo = new ZipInfo();
     zipInfo.ZipInfoId = zipInfoId;
     zipInfo.ZipCode = zipCode;
     zipInfo.StateCode = stateCode;
     zipInfo.City = city;
     zipInfo.Latitude = latitude;
     zipInfo.Longitude = longitude;
     zipInfo.Population = population;
     zipInfo.IsDeleted = isDeleted;
     return zipInfo;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ZipInfos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToZipInfos(ZipInfo zipInfo)
 {
     base.AddObject("ZipInfos", zipInfo);
 }