/// <summary> /// Deprecated Method for adding a new object to the ZipCodes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToZipCodes(ZipCode zipCode) { base.AddObject("ZipCodes", zipCode); }
/// <summary> /// Create a new ZipCode object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="code">Initial value of the Code property.</param> /// <param name="cityId">Initial value of the CityId property.</param> public static ZipCode CreateZipCode(global::System.Int32 id, global::System.String code, global::System.Int32 cityId) { ZipCode zipCode = new ZipCode(); zipCode.Id = id; zipCode.Code = code; zipCode.CityId = cityId; return zipCode; }