in

problem running a simple count query

Last post 05-11-2008 2:24 AM by spookytooth. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-09-2008 5:30 AM

    problem running a simple count query

    Hi

    I can't execute a basic count aggregate query as shown on the susonic website like so

    SubSonic.Where w = new SubSonic.Where();

    w.ColumnName = "categoryID";

    w.ParameterValue = "1";

    Query.GetCount("products", "productID", w);

     

    My query object doesnt have a getCount method. My query class has 4 methods only. I've just downloaded the latest subsonic code and updated the subsonic reference in my visual studio project but this method still does not exist

     

    thanks a lot

    andrea

  • 05-09-2008 2:27 PM In reply to

    Re: problem running a simple count query

    Try using (You have to use the Instance methods not the static ones)

    SubSonic.Query q = new SubSonic.Query();
    q.GetCount("products", "productID", w);

    If I am I because I am I, and You are You because You are You, then I am I, and you are you. But If I am I because You are You, and You are You because I am I, then I am not I and You are not You. -Rabbi of Kotzk
  • 05-09-2008 6:26 PM In reply to

    Re: problem running a simple count query

    Hi I should have pointed out that I aready tried that but i get an error when i try and create a new query object

     'Overload resolution failed because no accessible New accepts this number of arguments'

    I don't know enough about subsonic and te arguments in the query constructor to proceed

    thanks

  • 05-11-2008 2:24 AM In reply to

    Re: problem running a simple count query

    http://subsonicproject.com/querying/using-the-original-query-tool/ 

    Find a bug? Create a Work Item for a fast response.. Want to help? Create a patch for us!
Page 1 of 1 (4 items)