/// <summary> /// Copies the elements of the specified <see cref="AttachPaymentlogInfo">AttachPaymentlogInfo</see> array to the end of the collection. /// </summary> /// <param name="value">An array of type <see cref="AttachPaymentlogInfo">AttachPaymentlogInfo</see> containing the Components to add to the collection.</param> public void AddRange(AttachPaymentlogInfo[] value) { for (int i = 0; (i < value.Length); i = (i + 1)) { this.Add(value[i]); } }
/// <summary> /// 加载单个实体对象 /// </summary> /// <param name="reader"></param> /// <returns></returns> private static AttachPaymentlogInfo LoadSingleAttachPaymentlogInfo(IDataReader reader) { AttachPaymentlogInfo attachPaymentlogInfo = new AttachPaymentlogInfo(); attachPaymentlogInfo.Id = TypeConverter.ObjectToInt(reader["id"]); attachPaymentlogInfo.Uid = TypeConverter.ObjectToInt(reader["uid"]); attachPaymentlogInfo.UserName = reader["username"].ToString().Trim(); attachPaymentlogInfo.Aid = TypeConverter.ObjectToInt(reader["aid"]); attachPaymentlogInfo.Authorid = TypeConverter.ObjectToInt(reader["authorid"]); attachPaymentlogInfo.PostDateTime = Convert.ToDateTime(reader["postdatetime"]); attachPaymentlogInfo.Amount = TypeConverter.ObjectToInt(reader["amount"]); attachPaymentlogInfo.NetAmount = TypeConverter.ObjectToInt(reader["netamount"]); return attachPaymentlogInfo; }
/// <summary> /// 更新的附件交易信息 /// </summary> /// <param name="attachPaymentLogInfo">要更新的附件交易信息</param> /// <returns></returns> public static int UpdateAttachPaymetLog(AttachPaymentlogInfo attachPaymentLogInfo) { return DatabaseProvider.GetInstance().UpdateAttachPaymetLog(attachPaymentLogInfo); }
/// <summary> /// Initializes a new instance of the <see cref="AttachPaymentlogInfoCollection">AttachPaymentlogInfoCollection</see> class containing the specified array of <see cref="AttachPaymentlogInfo">AttachPaymentlogInfo</see> Components. /// </summary> /// <param name="value">An array of <see cref="AttachPaymentlogInfo">AttachPaymentlogInfo</see> Components with which to initialize the collection. </param> public AttachPaymentlogInfoCollection(AttachPaymentlogInfo[] value) { this.AddRange(value); }
public int Add(AttachPaymentlogInfo value) { return this.List.Add(value); }
public void Remove(AttachPaymentlogInfo value) { List.Remove(value); }
public void Insert(int index, AttachPaymentlogInfo value) { List.Insert(index, value); }
/// <summary> /// Gets the index in the collection of the specified <see cref="AttachPaymentlogInfoCollection">AttachPaymentlogInfoCollection</see>, if it exists in the collection. /// </summary> /// <param name="value">The <see cref="AttachPaymentlogInfoCollection">AttachPaymentlogInfoCollection</see> to locate in the collection.</param> /// <returns>The index in the collection of the specified object, if found; otherwise, -1.</returns> public int IndexOf(AttachPaymentlogInfo value) { return this.List.IndexOf(value); }
/// <summary> /// Copies the collection Components to a one-dimensional <see cref="T:System.Array">Array</see> instance beginning at the specified index. /// </summary> /// <param name="array">The one-dimensional <see cref="T:System.Array">Array</see> that is the destination of the values copied from the collection.</param> /// <param name="index">The index of the array at which to begin inserting.</param> public void CopyTo(AttachPaymentlogInfo[] array, int index) { this.List.CopyTo(array, index); }
/// <summary> /// Gets a value indicating whether the collection contains the specified <see cref="AttachPaymentlogInfoCollection">AttachPaymentlogInfoCollection</see>. /// </summary> /// <param name="value">The <see cref="AttachPaymentlogInfoCollection">AttachPaymentlogInfoCollection</see> to search for in the collection.</param> /// <returns><b>true</b> if the collection contains the specified object; otherwise, <b>false</b>.</returns> public bool Contains(AttachPaymentlogInfo value) { return this.List.Contains(value); }