Hi, guy,

I noticed that in ActiveRecordBase, the Count methods are all declared with
"protected". So I could not use them out of the model scope.

So what should I do if I want to implement a template extension function
like this:

        public static MyList<T> ToMyList<T>(this ActiveRecordBase<T> model)
        {
            int count  =  model.Count();                <------ Count() is
protected, could not be used here.

            .....

            return something;
        }


Regards.

Larry

-- 
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