コード例 #1
0
ファイル: NC.Designer.cs プロジェクト: rajjy1/nepalicorner
 /// <summary>
 /// Deprecated Method for adding a new object to the ZipCodes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToZipCodes(ZipCode zipCode)
 {
     base.AddObject("ZipCodes", zipCode);
 }
コード例 #2
0
ファイル: NC.Designer.cs プロジェクト: rajjy1/nepalicorner
 /// <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;
 }