Hi Dan,
I've looked through the commit log of AR and it looks like the support was
added by Hammett at the start of this year
(januari 15 2008), so that leaves you out of luck with the pre-compiled
version of the RC3 release.
You can try to apply his patch (and maybe some others) the source version of
RC3 and recompile your own or upgrade to the trunk for this project.
On Tue, Sep 23, 2008 at 11:03 AM, bdaniel7 <[EMAIL PROTECTED]> wrote:
>
> I'm using RC3.
> It seems that "ElementType" is not yet implemented.
>
> I'm a bit afraid to use the trunk because another project which uses
> code from trunk doesn't compile.
> because of some missing interfaces.
>
> Dan
>
>
> On Sep 23, 11:54 am, "Ernst Naezer" <[EMAIL PROTECTED]> wrote:
> > Hi Dan,
> >
> > it's true the exception is a bit misleading in the case of as enum
> mapping,
> > you also need to specify the element and the column mappings.
> >
> > so it becomes something like:
> >
> > [HasMany(Table = "Roles", ColumnKey = "UserId", Element = "RoleId",
> > ElementType = "Namespace.Model.Role, Assembly")]
> > public virtual IList<Role> Roles
> > {
> > ...
> >
> > }
> >
> > I've committed some code to the trunk that can guess these properties if
> you
> > leave them blank, so if you upgrade
> >
> > [HasMany(Table = "Roles")]
> > public virtual IList<Role> Roles
> > {
> > ...
> >
> > }
> >
> > should work as expected and generated the same mapping as the version
> above.
> >
> > cheers
> > Ernst.
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---