subsonic-active-record

ORM Comparison: Which comes first the database or classes?

Lately I've been looking into the .NET based ORMs that are available. I've noticed that each ends up siting in one or two camps. In one camp the database is created first, and the ORM provides an easier way to access the database in an application. In the second camp the object model exists first and the ORM facilitates persisting the ob...

total number of rows for paging with subsonic

Hi, there! Im trying to do paging with subsonic that gets data from custom stored procedure. Im clear with everything, except how to get total number of rows, so that I could show user how many rows are there and how many pages he can go to? Im new to subsonic, maybe Im missing something. I know that it is possible to getpaged with su...

Subsonic 3.0 TestRepository "Find" not working

Using Subsonic 3, I have a simple class called "ConferenceRepository" that has a method that returns a bunch of conferences based on their status. I am testing this using SubSonic's built in support for testing. My setup of the repo looks like this: // 2 Approved, 4 pending, 3 rejected var data = new List<Conference> { ...

App won't compile, getting errors for each table

Hi there, I am trying to build an application using subsonic 3.0.0.3, VS 2008, sql server 2005. I followed all the steps as in the demos / tutorial, and I was able to generated the classes, but the app won't build. Basically for each table mapped, I get the following warning : Warning 3 'GanagroLite.Data.Employee' overrides Object.Equal...

Subsonic Active Record Execute Direct SQL

How can I execute direct/raw SQL through subsonic 3.0 when using the Active Record pattern? ...