Esempio n. 1
0
        public CultureCollection FetchByQuery(Query qry)
        {
            CultureCollection coll = new CultureCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Esempio n. 2
0
        public CultureCollection FetchAll()
        {
            CultureCollection coll = new CultureCollection();
            Query             qry  = new Query(Culture.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Esempio n. 3
0
        public static AVManager.DAL.CultureCollection GetCultureCollection(int varProductDescriptionID)
        {
            SubSonic.QueryCommand cmd = new SubSonic.QueryCommand(
                "SELECT * FROM Culture INNER JOIN ProductModelProductDescriptionCulture ON " +
                "Culture.CultureID=ProductModelProductDescriptionCulture.CultureID WHERE ProductModelProductDescriptionCulture.ProductDescriptionID=@ProductDescriptionID", ProductDescription.Schema.Provider.Name);

            cmd.AddParameter("@ProductDescriptionID", varProductDescriptionID, DbType.Int32);
            IDataReader       rdr  = SubSonic.DataService.GetReader(cmd);
            CultureCollection coll = new CultureCollection();

            coll.LoadAndCloseReader(rdr);
            return(coll);
        }