Dynamicweb.eCommerce.Prices Namespace > Price Class : Fill Method |
'Declaration
Public Sub Fill( _ ByVal DataReader As IDataReader _ )
public void Fill( IDataReader DataReader )
class MyPage : System.Web.UI.Page { private Dynamicweb.eCommerce.Prices.Price GetPrice(string priceID) { Dynamicweb.eCommerce.Prices.Price price = null; string SQL = "SELECT * FROM EcomPrices WHERE PriceID = '" + priceID + "'"; IDataReader objDataReader = Database.CreateDataReader(SQL, "Ecom.mdb"); if (objDataReader.Read()) { price = new Dynamicweb.eCommerce.Prices.Price(); price.Fill(objDataReader); } objDataReader.Close(); objDataReader.Dispose(); return price; } }
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