[fluent-nhib] Re: AutoMappings strings always nvarchar(255)

2009-03-06 Thread ComradeF
That must be the difference, then. AutoMapping doesn't accept .WithLengthOf() in my ClassMaps for whatever reason... maybe I've misunderstood the design somehow. Any hints, or is it a bug? On Mar 6, 12:35 am, Martin Nilsson wrote: > Fluent > > On Thu, Mar 5, 2009 at 4:05 PM, ComradeF wrote: > >

[fluent-nhib] Composite Key for resolving Many to Many Relationship

2009-03-06 Thread sianabanana
I have a more complex many to many relationship and need to create the link between the manys as an object to store further data. Order - id, date Order Product - orderid, productid, quantity Product - id, name I am using auto mapping, and i am overriding the mapping to specify anything that

[fluent-nhib] Re: ArgumentOutOfRangeException : Index was out of range.

2009-03-06 Thread James Gregory
Good catch! On Fri, Mar 6, 2009 at 9:26 PM, Jan Van Ryswyck wrote: > > I found the solution to this problem which resulted from my own > stupidity in the first place. It all became clear to me as soon as I > generated the hbm files from the fluent NH mapping. > > >... > > > > >

[fluent-nhib] Re: ArgumentOutOfRangeException : Index was out of range.

2009-03-06 Thread Jan Van Ryswyck
I found the solution to this problem which resulted from my own stupidity in the first place. It all became clear to me as soon as I generated the hbm files from the fluent NH mapping. ... ... Notice that the column for the Name pr

[fluent-nhib] Re: DiscriminateSubClasses question

2009-03-06 Thread Roger Heim
I'll the post the full project (it's probably bigger than Google's limit) on my blog tonight then update this thread with a link. On Mar 6, 3:07 pm, James Gregory wrote: > Thanks for the info, this one has been a bit of a weird issue for a while > now. If you want to try sending me the example

[fluent-nhib] Re: DiscriminateSubClasses question

2009-03-06 Thread James Gregory
Thanks for the info, this one has been a bit of a weird issue for a while now. If you want to try sending me the example (to this address) then I'll be grateful, but I can probably knock one together from what you've said. On Fri, Mar 6, 2009 at 7:42 PM, Roger Heim wrote: > > Thanks for the info

[fluent-nhib] Re: DiscriminateSubClasses question

2009-03-06 Thread Roger Heim
Thanks for the info James. Removing the discriminator as an actual property helped but now I've run into issue #95 (where the discriminator and the version tag are in the wrong sequence.) I tried three times to attach an example to the issue that replicates the problem but each time Google barfed.

[fluent-nhib] Simple enumeration

2009-03-06 Thread gre...@slavec.net
Hi, Could support for standard Nhibernate enumeration mapping be added to AutoPersistenceModel? For example mapping a property Direction of type enum WindDirection {} would produce following output: Example implementation would be: public class Conventions { ... public void UseSimpl

[fluent-nhib] Re: DiscriminateSubClasses question

2009-03-06 Thread James Gregory
You don't normally have the discriminator as an actual property in your entity too, it's usually just a column. That's not to say it's incorrect, just something I've not seen before. Perhaps try it without. On Fri, Mar 6, 2009 at 2:21 AM, Roger Heim wrote: > > Hi All, > > I've just started using