[fluent-nhib] Re: Conventions not working with FNH 1.2?

2011-05-16 Thread cremor
I have noticed something similar: Usually my conventions work like
before 1.2, but if I call ExportTo() in my fluent configuration, no
conventions are applied.

I can reproduce it by adding
".Conventions.Add(DefaultAccess.Property()).ExportTo("D:\\")" to
Examples.FirstProject of the current 1.x branch. The exported mappings
still contain the access strategies which are choosen by Fluent
NHibernate itself (backfield for Id, nothing specified for other
properties).

On May 12, 9:45 pm, James Gregory  wrote:
> I've tried to reproduce both of your issues and I can't. I modified the
> Example.FirstProject and Example.FirstAutomappedProject example projects
> which are included with the FNH source, and both of them applied table
> naming conventions correctly.
>
> *@dwlodarczyk* What version of FNH are you using exactly? You say 1.2, was
> that the official release or one of the pre-release builds? What's the build
> version?
>
> *@Vahid* Try upgrading to the 1.2 official release, the version you're
> running is a few builds behind. I'm having no issues with the latest.

-- 
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: Is Fluent Hardcoded to use the Castle ProxyFactoryFactory?

2011-05-16 Thread Jordan
Strange, this must be a problem caused by using Spring.net then. If I
get some spare time i'll investigate.

-- 
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] Clustered index on many to many relationships

2011-05-16 Thread Will Rayner
Hi all,

I'm working on a Azure MVC3 application that uses Fluent Nhibernate.
One of the restrictions that SQL Azure has is that all tables must
have a clustered index.

Unfortunately the example many-to-many relationship example code below
doesn't create a table with an index.

HasManyToMany(x => x.Products)
 .Cascade.All()
 .Table("StoreProduct");


I've searched through a few previous threads on this list, as well as
some stack overflow posts. I can't seem to find a solution that works
well. Ideally I would like to follow the syntax for setting a index on
a normal mapping definition:

Map(x => x.Title).Index("IndexName");


Previous threads:
http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/f01a9f556ad53d1c/2acac09afd62f0a9?lnk=gst&q=index+many+to+many#2acac09afd62f0a9

Looks like you may be able to do it with AutoMapping, but I kinda want
all my models to use Fluent mappping:
http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/8a9ee236297b411e/d993974a7291501f?lnk=gst&q=index+many+to+many#d993974a7291501f


Stackoverflow:
http://stackoverflow.com/questions/4869586/fluent-nhibernate-how-to-create-a-clustered-index-on-a-many-to-many-join-table
http://stackoverflow.com/questions/1356467/how-can-you-create-clustered-indexes-with-fluent-nhibernate


Does anyone have any ideas? Any help would be greatly appreciated. Is
there an interface/convention I can implement that will give me the
power to do what I want?

This is one of the first projects that I've used Fluent NHibernate, so
feel free to point out the obvious!

Regards,
Will

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



Re: RE: [fluent-nhib] not-null property references a null or transient value while testing bi-directional mapping

2011-05-16 Thread James Gregory
+1 to what Michael said.

Which entity are you trying to persist? Your goals collection is set to 
cascade, so if you were saving a Match it should cascade the save to Goal, 
but your References in Goal isn't set to cascade so it wouldn't work the 
other direction.

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