[fluent-nhib] Re: version column with custom name
Hi, If you want to use automapping and you don't want to define custom universal conventions, try IAutoMappingOverride. It's still automapping except for those properties which should not be treated automatic and now you can specify their "ColumnName" manually: http://wiki.fluentnhibernate.org/Auto_mapping#Overrides -- 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] version column with custom name
Hi, Another caveat on my mission to bend automapping to my twisted schema. I have a DateTime property on my entities named ModifiedDate (that maps to MODIFIED_DATE column in this legacy Oracle schema I can't change) and I want to make it a version column. However Reflectoring over FNH tells me that it doesn't like me doing that and the rules for being a version column are hardcoded. If forced I can rename the property and have a special property convention to map it to the right column, but I'd rather stick to the existing property name and just have FNH allow me to designate it as a version column as is. cheers, Krzysztof -- 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: Formula and automapping
Hi, You should do it this way: public class UserCustomMappings : IAutoMappingOverride { public void Override(AutoMapping mapping) { mapping.Id(u => u.Id).GeneratedBy.Identity(); mapping.Map(x => x.FullName).Formula("FirstName + ' ' + LastName";); //for public virtual string FullName { get; private set; } } } -- 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] FluentNHibernate.Mapping.Builders namespace
In version 1.1.0.0 there was a namespace called but in the current download version 1.1.0.685 it is gone. Has this been replaced by some other namespace? Thanks, Matthew -- 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: [fluent-nhib] Automapping, change collection type from Bag to Set
Thanks for that Krzysztof. Our IEnumerable support is a bit lax, and it's something I've been hoping to sort out; in theory, it shouldn't be too difficult to do either. NHibernate only supports a limited number of backing field formats, and it shouldn't take too much to try to guess them with reflection. I reckon we can get more robust support for IEnumerable in before 1.2 goes out, and that should hopefully make the need for swapping collection types in conventions a bit less important. -- 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: Formula and automapping
Sounds like a bug! At this rate 1.2 is never going to get finished... ;) -- 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.