Dynamicweb.eCommerce.Orders Namespace > OrderField Class : Fill Method |
'Declaration
Public Sub Fill( _ ByVal DataReader As IDataReader _ )
public void Fill( IDataReader DataReader )
class MyPage : System.Web.UI.Page { private OrderField GetOrderField(string fieldIdStr) { OrderField field = default(OrderField); field = new OrderField(); string SQL = "SELECT * FROM EcomOrderField WHERE OrderFieldID = '" + Base.ChkString(fieldIdStr) + "' "; IDataReader objDataReader = Database.CreateDataReader(SQL, "Ecom.mdb"); if (objDataReader.Read()) { field.Fill(objDataReader); } objDataReader.Close(); objDataReader.Dispose(); return field; } }
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