public ProductModelCollection FetchByQuery(Query qry) { ProductModelCollection coll = new ProductModelCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public ProductModelCollection FetchAll() { ProductModelCollection coll = new ProductModelCollection(); Query qry = new Query(ProductModel.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public static AVManager.DAL.ProductModelCollection GetProductModelCollection(int varIllustrationID) { SubSonic.QueryCommand cmd = new SubSonic.QueryCommand( "SELECT * FROM ProductModel INNER JOIN ProductModelIllustration ON " + "ProductModel.ProductModelID=ProductModelIllustration.ProductModelID WHERE ProductModelIllustration.IllustrationID=@IllustrationID", Illustration.Schema.Provider.Name); cmd.AddParameter("@IllustrationID", varIllustrationID, DbType.Int32); IDataReader rdr = SubSonic.DataService.GetReader(cmd); ProductModelCollection coll = new ProductModelCollection(); coll.LoadAndCloseReader(rdr); return(coll); }
public static AVManager.DAL.ProductModelCollection GetProductModelCollection(string varCultureID) { SubSonic.QueryCommand cmd = new SubSonic.QueryCommand( "SELECT * FROM ProductModel INNER JOIN ProductModelProductDescriptionCulture ON " + "ProductModel.ProductModelID=ProductModelProductDescriptionCulture.ProductModelID WHERE ProductModelProductDescriptionCulture.CultureID=@CultureID", Culture.Schema.Provider.Name); cmd.AddParameter("@CultureID", varCultureID, DbType.String); IDataReader rdr = SubSonic.DataService.GetReader(cmd); ProductModelCollection coll = new ProductModelCollection(); coll.LoadAndCloseReader(rdr); return(coll); }