Dynamicweb.eCommerce.Prices Namespace : RoundingCollection Class |
'Declaration
<SerializableAttribute()> Public Class RoundingCollection Inherits System.Collections.ObjectModel.Collection(Of Rounding)
[SerializableAttribute()] public class RoundingCollection : System.Collections.ObjectModel.Collection<Rounding>
class MyPage : System.Web.UI.Page { public Dynamicweb.eCommerce.Prices.RoundingCollection GetRoundings(string RoundingID) { string SQL = "SELECT * FROM EcomRoundings WHERE RoundingID = '" + RoundingID + "'"; Dynamicweb.eCommerce.Prices.Rounding objRounding = default(Dynamicweb.eCommerce.Prices.Rounding); IDataReader objDataReader = Database.CreateDataReader(SQL, "Ecom.mdb"); Dynamicweb.eCommerce.Prices.RoundingCollection col = new Dynamicweb.eCommerce.Prices.RoundingCollection(); while (objDataReader.Read()) { objRounding = new Dynamicweb.eCommerce.Prices.Rounding(objDataReader); col.Add(objRounding); } objDataReader.Close(); objDataReader.Dispose(); return col; } }
System.Object
System.Collections.ObjectModel.Collection<T>
Dynamicweb.eCommerce.Prices.RoundingCollection
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2