Same for this one. (Is anyone using the google users list or was my
question lame?)

Or is everyone just busy?

I'm having mailing list confusion.

---------- Forwarded message ----------
From: josh robb <[EMAIL PROTECTED]>
Date: Oct 10, 2006 9:33 PM
Subject: ActiveRecordBase<> + JoinedBase
To: [EMAIL PROTECTED]


Ok,

It's definitely time to go home because I can't figure out how to make
this scenario work. I've got:

[ActiveRecord("Users"), JoinedBase]
class User : ActiveRecordValidationBase<User> {}

and

[ActiveRecord("Customers")]
public class Customer : User {}

When I do a:

Customer c = Customer.Find(1);

I get:

Cannot implicitly convert type 'Models.User' to 'Models.Customer'. An
explicit conversion exists (are you missing a cast?)

So in Customer I:

        protected override Customer Find(object id) {
            return base.Find(id) as Customer;
        }

And I get:

Customer.Find(object)': cannot override inherited member
'Castle.ActiveRecord.ActiveRecordBase<Models.User>.Find(object)'
because it is not marked virtual, abstract, or override

Sigh - do I just have to:

Customer c = Customer.Find(1) as Customer; //this sucks.

j.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
CastleProject-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/castleproject-users

Reply via email to