Is your class marked with the [ActiveRecord] attribute?

On Jul 12, 10:50 am, scottl2001 <[email protected]> wrote:
> OK, here's my situation. Have a new table created in SQL Server
> express, and am trying to add records. Upon the Add method in my base
> provider, I get the following error:
>
> "You have accessed an ActiveRecord class that wasn't properly
> initialized. The only explanation is that the call to
> ActiverRecordStarter.Initialize() didn't include
> xx.Data.Models.classname Class"
>
> But of course I pass in the proper classname. It even passes the
> validation test in the code
>
> if (record.IsValid) {
>   record.Create();}
>
> else {
>
> and blows up in the record.Create() statement.
>
> I know I'm passing in the proper class. It's just a brand new table,
> and it's the first time I've attempted to add a a record through
> Active Record. Access rights don't seem to be the problem. Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to