public CustomizedProductDisplayTypeProductMapCollection FetchAll() { CustomizedProductDisplayTypeProductMapCollection coll = new CustomizedProductDisplayTypeProductMapCollection(); Query qry = new Query(CustomizedProductDisplayTypeProductMap.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
/// <summary> /// Handles the Load event of the Page control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { CustomizedProductDisplay cpd = new CustomizedProductDisplay(CustomizedProductDisplay.Columns.RegionId, base.RegionId); CustomizedProductDisplayTypeProductMapCollection cpdmColl = new CustomizedProductDisplayTypeProductMapCollection() .Where(CustomizedProductDisplayTypeProductMap.Columns.CustomizedProductDisplayTypeId, cpd.CustomizedProductDisplayTypeId) .Load(); dlProducts.DataSource = cpdmColl; dlProducts.DataBind(); } }
public CustomizedProductDisplayTypeProductMapCollection FetchByQuery(Query qry) { CustomizedProductDisplayTypeProductMapCollection coll = new CustomizedProductDisplayTypeProductMapCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public CustomizedProductDisplayTypeProductMapCollection FetchByID(object CustomizedProductDisplayTypeId) { CustomizedProductDisplayTypeProductMapCollection coll = new CustomizedProductDisplayTypeProductMapCollection().Where("CustomizedProductDisplayTypeId", CustomizedProductDisplayTypeId).Load(); return coll; }