public void AddRange(GoodsusercreditinfoCollection value)
 {
     for (int i = 0; i < value.Count; i++)
     {
         this.Add((Goodsusercreditinfo)value.List[i]);
     }
 }
 /// <summary>
 /// Adds the contents of another <see cref="GoodsusercreditinfoCollection">GoodsusercreditinfoCollection</see> to the end of the collection.
 /// </summary>
 /// <param name="value">A <see cref="GoodsusercreditinfoCollection">GoodsusercreditinfoCollection</see> containing the Components to add to the collection. </param>
 public void AddRange(GoodsusercreditinfoCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         this.Add((Goodsusercreditinfo)value.List[i]);
     }
 }
 public GoodsusercreditinfoCollection(GoodsusercreditinfoCollection value)
 {
     this.AddRange(value);
 }
 public GoodsusercreditinfoCollectionEnumerator(GoodsusercreditinfoCollection mappings)
 {
     this._temp       = mappings;
     this._enumerator = this._temp.GetEnumerator();
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GoodsusercreditinfoCollectionEnumerator">GoodsusercreditinfoCollectionEnumerator</see> class referencing the specified <see cref="GoodsusercreditinfoCollection">GoodsusercreditinfoCollection</see> object.
 /// </summary>
 /// <param name="mappings">The <see cref="GoodsusercreditinfoCollection">GoodsusercreditinfoCollection</see> to enumerate.</param>
 public GoodsusercreditinfoCollectionEnumerator(GoodsusercreditinfoCollection mappings)
 {
     _temp       = ((IEnumerable)(mappings));
     _enumerator = _temp.GetEnumerator();
 }
Example #6
0
            /// <summary>
            /// 获得(商品)用户信用信息(DTO)
            /// </summary>
            /// <param name="__idatareader">要转换的数据</param>
            /// <returns>返回(商品)用户信用信息</returns>
            public static GoodsusercreditinfoCollection GetGoodsUserCreditList(IDataReader reader)
            {
                GoodsusercreditinfoCollection goodsUserCreditInfoColl = new GoodsusercreditinfoCollection();

                while (reader.Read())
                {
                    Goodsusercreditinfo goodsUserCreditsInfo = new Goodsusercreditinfo();
                    goodsUserCreditsInfo.Id = TypeConverter.ObjectToInt(reader["id"].ToString());
                    goodsUserCreditsInfo.Uid = TypeConverter.ObjectToInt(reader["uid"].ToString());
                    goodsUserCreditsInfo.Oneweek = TypeConverter.ObjectToInt(reader["oneweek"].ToString());
                    goodsUserCreditsInfo.Onemonth = TypeConverter.ObjectToInt(reader["onemonth"].ToString());
                    goodsUserCreditsInfo.Sixmonth = TypeConverter.ObjectToInt(reader["sixmonth"].ToString());
                    goodsUserCreditsInfo.Sixmonthago = TypeConverter.ObjectToInt(reader["sixmonthago"].ToString());
                    goodsUserCreditsInfo.Ratefrom = Convert.ToInt16(reader["ratefrom"].ToString());
                    goodsUserCreditsInfo.Ratetype = Convert.ToInt16(reader["ratetype"].ToString());

                    goodsUserCreditInfoColl.Add(goodsUserCreditsInfo);
                }
                reader.Close();
                return goodsUserCreditInfoColl;
            }
 /// <summary>
 /// Initializes a new instance of the <see cref="GoodsusercreditinfoCollection">GoodsusercreditinfoCollection</see> class containing the elements of the specified source collection.
 /// </summary>
 /// <param name="value">A <see cref="GoodsusercreditinfoCollection">GoodsusercreditinfoCollection</see> with which to initialize the collection.</param>
 public GoodsusercreditinfoCollection(GoodsusercreditinfoCollection value)
 {
     this.AddRange(value);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GoodsusercreditinfoCollectionEnumerator">GoodsusercreditinfoCollectionEnumerator</see> class referencing the specified <see cref="GoodsusercreditinfoCollection">GoodsusercreditinfoCollection</see> object.
 /// </summary>
 /// <param name="mappings">The <see cref="GoodsusercreditinfoCollection">GoodsusercreditinfoCollection</see> to enumerate.</param>
 public GoodsusercreditinfoCollectionEnumerator(GoodsusercreditinfoCollection mappings)
 {
     _temp = ((IEnumerable)(mappings));
     _enumerator = _temp.GetEnumerator();
 }