Thanks Patrick, that work perfectly except when I call :
ActiveRecordStarter.CreateSchema();
OneDayTotals is created as a Table.
So what I am thinking now is to run this command :
ActiveRecordStarter.GenerateCreationScripts("create.sql");
then make change to the create.sql file so when I deploy my
application I would not run ActiveRecordStarter.CreateSchema(); but
ActiveRecordStarter.CreateSchemaFromFile("create.sql"); that would
give me more control.
Is that how thing should work? Or I missed any AR feature?
On May 8, 10:14 am, "Patrick Steele" <
patrick.ste...@gmail.com> wrote:
> Yes. Define your AR class as you normally would for a table -- but
> take into account two things:
>
> 1) Mark the class as Mutable = false
>
> [ActiveRecord(Mutable=false)]
> public class OneDayTotals : ActiveRecordBase<OneDayTotals>
>
> 2) Make sure your view returns a unique primary key for each row.
>