コード例 #1
0
 /// <summary>
 /// Adds the contents of another <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> to the end of the collection.
 /// </summary>
 /// <param name="value">A <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> containing the Components to add to the collection. </param>
 public void AddRange(GoodsrateinfoCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         this.Add((Goodsrateinfo)value.List[i]);
     }
 }
コード例 #2
0
 /// <summary>
 /// Adds the contents of another <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> to the end of the collection.
 /// </summary>
 /// <param name="value">A <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> containing the Components to add to the collection. </param>
 public void AddRange(GoodsrateinfoCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         this.Add((Goodsrateinfo)value.List[i]);
     }
 }
コード例 #3
0
ファイル: GoodsRates.cs プロジェクト: Vinna/DeepInSummer
            /// <summary>
            /// 获得商品评价信息(DTO)
            /// </summary>
            /// <param name="__idatareader">要转换的数据</param>
            /// <returns>返回商品评价信息</returns>
            public static GoodsrateinfoCollection GetGoodsRateInfoList(IDataReader reader)
            {
                GoodsrateinfoCollection goodsRateInfoColl = new GoodsrateinfoCollection();

                while (reader.Read())
                {
                    Goodsrateinfo goodsRateInfo = new Goodsrateinfo();
                    goodsRateInfo.Id = TypeConverter.ObjectToInt(reader["id"]);
                    goodsRateInfo.Goodstradelogid = TypeConverter.ObjectToInt(reader["goodstradelogid"]);
                    goodsRateInfo.Message = reader["message"].ToString().Trim();
                    goodsRateInfo.Explain = reader["explain"].ToString().Trim();
                    goodsRateInfo.Ip = reader["ip"].ToString().Trim();
                    goodsRateInfo.Uid = TypeConverter.ObjectToInt(reader["uid"]);
                    goodsRateInfo.Uidtype = Convert.ToInt16(reader["uidtype"].ToString());
                    goodsRateInfo.Ratetouid = TypeConverter.ObjectToInt(reader["ratetouid"]);
                    goodsRateInfo.Username = reader["username"].ToString().Trim();
                    goodsRateInfo.Postdatetime = Convert.ToDateTime(reader["postdatetime"]);
                    goodsRateInfo.Goodsid = TypeConverter.ObjectToInt(reader["goodsid"]);
                    goodsRateInfo.Goodstitle = reader["goodstitle"].ToString().Trim();
                    goodsRateInfo.Price = Convert.ToDecimal(reader["price"].ToString());
                    goodsRateInfo.Ratetype = Convert.ToInt16(reader["ratetype"].ToString());

                    goodsRateInfoColl.Add(goodsRateInfo);
                }
                reader.Close();
                return goodsRateInfoColl;
            }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> class containing the elements of the specified source collection.
 /// </summary>
 /// <param name="value">A <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> with which to initialize the collection.</param>
 public GoodsrateinfoCollection(GoodsrateinfoCollection value)
 {
     this.AddRange(value);
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GoodsratesinfoinfoCollectionEnumerator">GoodsratesinfoinfoCollectionEnumerator</see> class referencing the specified <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> object.
 /// </summary>
 /// <param name="mappings">The <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> to enumerate.</param>
 public GoodsratesinfoinfoCollectionEnumerator(GoodsrateinfoCollection mappings)
 {
     _temp       = ((IEnumerable)(mappings));
     _enumerator = _temp.GetEnumerator();
 }
コード例 #6
0
 public GoodsratesinfoinfoCollectionEnumerator(GoodsrateinfoCollection mappings)
 {
     this._temp       = mappings;
     this._enumerator = this._temp.GetEnumerator();
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> class containing the elements of the specified source collection.
 /// </summary>
 /// <param name="value">A <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> with which to initialize the collection.</param>
 public GoodsrateinfoCollection(GoodsrateinfoCollection value)
 {
     this.AddRange(value);
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GoodsratesinfoinfoCollectionEnumerator">GoodsratesinfoinfoCollectionEnumerator</see> class referencing the specified <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> object.
 /// </summary>
 /// <param name="mappings">The <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> to enumerate.</param>
 public GoodsratesinfoinfoCollectionEnumerator(GoodsrateinfoCollection mappings)
 {
     _temp = ((IEnumerable)(mappings));
     _enumerator = _temp.GetEnumerator();
 }