Re: [fluent-nhib] Composite ID unmapped class problem
Someone with other solution? -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To view this discussion on the web visit https://groups.google.com/d/msg/fluent-nhibernate/-/C9pfbkIHy3EJ. 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] Mapping Overrides being executed before conventions
Looks like my last post did not go through, posting again: The following configuration is what I have: x.AutoMappings.Add( AutoMap.AssemblyOf(new MyConfig()) .Conventions.AddFromAssemblyOf() .UseOverridesFromAssemblyOf()); But my mapping overrides are are called before the conventions, is this the expected order? and if so how can I achieve what I want to do. Thanks -- 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: Schema Update doesn't apply to changed field lengths.
Hi Daniel, Thanks for letting me know, I wasn't sure which it was a part of so I asked here first. I'll go and repost the question in an NHibernate place. Jon On Jun 9, 2:03 pm, Daniel Mirapalheta wrote: > Hi Jon, > > Actually this is a NHibernate question, witch is responsible for all > the queries generation. FluentNHibernate is just a "middle layer" to > help you build your mappings without the XML syntax. > > Best regards, > DM > > On Jun 8, 6:32 am, Jon Bradford wrote: > > > > > > > > > Hi > > > Being new to fluent nHibernate when I set up all of my mappings I used > > a standard map for a string, presuming it would not use a length > > limited one, however after some problems in production I tracked down > > the issue to the default being nvarchar(255), while some of the fields > > need to be nvarchar(MAX) (because we don't know how much data could be > > in them). > > > I've now set up the mapping correctly, however when I run (with > > ExposeConfiguration): > > > new SchemaUpdate(config).Execute(true, false); > > > The only alter statement is the extra field added (correctly mapped > > with nvarchar(MAX)) and the new fields lengths are nowhere to be > > seen. Is this the intended behavior or am I missing something? > > > Thanks in advance, > > > Jon -- 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] PersistenceSpecification and the CheckList issue
Hello guys. I've asked about this in the past, but I didn't get a definitive answer. Here's my scenario: I've got a one-to-many mappings where each side is represented by an entity (not a component). Can anyone tell me why CheckList insists on inserting the items on the many side before inserting the item on the one side? I mean, for it work I need to make the foreign key accept null values because if I don't, I'll end up with an SQL exception. Instead of putting here the code, I'll just put a link to an old post which has some code that shows the problem: http://www.mail-archive.com/fluent-nhibernate@googlegroups.com/msg07492.html ok, so is this a bug? If it is, does anyone know if it will be fixed? btw, I'm asking if this is a bug because the code does insert when running it through a transaction which gets committed... thanks and regards, Luis -- 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: Schema Update doesn't apply to changed field lengths.
Hi Jon, Actually this is a NHibernate question, witch is responsible for all the queries generation. FluentNHibernate is just a "middle layer" to help you build your mappings without the XML syntax. Best regards, DM On Jun 8, 6:32 am, Jon Bradford wrote: > Hi > > Being new to fluent nHibernate when I set up all of my mappings I used > a standard map for a string, presuming it would not use a length > limited one, however after some problems in production I tracked down > the issue to the default being nvarchar(255), while some of the fields > need to be nvarchar(MAX) (because we don't know how much data could be > in them). > > I've now set up the mapping correctly, however when I run (with > ExposeConfiguration): > > new SchemaUpdate(config).Execute(true, false); > > The only alter statement is the extra field added (correctly mapped > with nvarchar(MAX)) and the new fields lengths are nowhere to be > seen. Is this the intended behavior or am I missing something? > > Thanks in advance, > > Jon -- 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: Component.ColumnPrefix not working in FNH v1.2.0.712 for NH2.1
On Jun 9, 4:09 am, Brian Chavez wrote: > I should mention, what I'm seeing is no column prefix ("ADDRESS_") > being applied to any of the Address properties. Only, "Street" and > "Zip" with no prefixes are being queried against the Foo table. > > -Brian Are you using the FNH from the NuGet repository? There are many "regressions" in FNH 1.2 in the NuGet repository, but only because the previous v1.1 was an incorrect build added to NuGet. See James' message at http://groups.google.com/group/fluent-nhibernate/msg/501b4365f243b875 -- 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.