[fluent-nhib] Re: Convention interface to change foreign key names for this mapping?

2011-04-06 Thread James Gregory
Thanks, I'll take a look.

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.



[fluent-nhib] Re: Convention interface to change foreign key names for this mapping?

2011-04-06 Thread Asger Hallas
Hi James and Maxus

I have the same problems. It seems that conventions are no longer
picked up when using Fluent Mappings. The instance of the
DefaultConventionFinder that is created from the configuration is
different than the instance that is searched later on. The latter
contains no conventions.

It seems to be the same problem here:
http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/d029e1e95b10b6b2#

I'm using 1.2.0.712 from NuGet. Unfortunately I'm not familiar enough
with the sources to submit a fix. I hope someone will pick it up or
give a hint :)

Kind regards, Asger

On Mar 28, 2:50 pm, Maxus  wrote:
> Hi James,
>
> sadly still doesn't change the constraint name:
>
>     alter table usergroups_accountpermissions
>         add constraint FK2D17646FA29C857
>         foreign key (UserGroupID)
>         references usergroups;
>
> I can set it manually in the mapping by doing this:
>
> .ForeignKeyConstraintName("usergroups_accountpermission_fk");
>
> but would have been nice to use aconventionto keep it all
> consistant.
>
> -M
>
> On Mar 28, 7:04 pm, Maxus  wrote:
>
>
>
>
>
>
>
> > No I haven't, will give it a try and report back :)
>
> > On Mar 28, 2:27 am, James Gregory  wrote:
>
> > > Have you tried deriving from the ForeignKeyConvention base class? It
> > > shouldn't work any different from the way you've been doing it, but I 
> > > would
> > > be interested to see if you have any different results using it.- Hide 
> > > quoted text -
>
> > - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.



[fluent-nhib] Re: Convention interface to change foreign key names for this mapping?

2011-03-28 Thread Maxus
Hi James,

sadly still doesn't change the constraint name:

alter table usergroups_accountpermissions
add constraint FK2D17646FA29C857
foreign key (UserGroupID)
references usergroups;

I can set it manually in the mapping by doing this:

.ForeignKeyConstraintName("usergroups_accountpermission_fk");

but would have been nice to use a convention to keep it all
consistant.

-M

On Mar 28, 7:04 pm, Maxus  wrote:
> No I haven't, will give it a try and report back :)
>
> On Mar 28, 2:27 am, James Gregory  wrote:
>
>
>
> > Have you tried deriving from the ForeignKeyConvention base class? It
> > shouldn't work any different from the way you've been doing it, but I would
> > be interested to see if you have any different results using it.- Hide 
> > quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.



[fluent-nhib] Re: Convention interface to change foreign key names for this mapping?

2011-03-28 Thread Maxus
No I haven't, will give it a try and report back :)

On Mar 28, 2:27 am, James Gregory  wrote:
> Have you tried deriving from the ForeignKeyConvention base class? It
> shouldn't work any different from the way you've been doing it, but I would
> be interested to see if you have any different results using it.

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.



[fluent-nhib] Re: Convention interface to change foreign key names for this mapping?

2011-03-27 Thread James Gregory
Have you tried deriving from the ForeignKeyConvention base class? It 
shouldn't work any different from the way you've been doing it, but I would 
be interested to see if you have any different results using it.

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.