コード例 #1
0
        public ProductModelCollection FetchByQuery(Query qry)
        {
            ProductModelCollection coll = new ProductModelCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
コード例 #2
0
        public ProductModelCollection FetchAll()
        {
            ProductModelCollection coll = new ProductModelCollection();
            Query qry = new Query(ProductModel.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }