[fluent-nhib] UserType and automapping

2011-12-21 Thread Krzysztof Koźmic
So here's my scenario I created a new class that I want mapped (via IUserType). Pretty standard stuff. Now the problem is - we're using automapping and the first thing I did was to create an IPropertyConvention implemented like: if(instance.Type == myType) { instance.CustomType(); } th

Re: [fluent-nhib] Re: Is Fluent NHibernate dead?

2011-05-01 Thread Krzysztof Koźmic
For the record, it seems the latest fnh works with latest nh preview. The only thing i had to change was proxy factory factory to the built one On 01/05/2011 6:47 PM, "James Gregory" wrote: > How very sensationalist a title this is. > > No, FNH is not dead. Yes, there will be a release for NH 3.2.

[fluent-nhib] Formula and automapping

2011-03-27 Thread Krzysztof Koźmic
Hi, I've been trying to have a calculated property with a formula specified so the mapping in HBM would look like: If I want to do it via IPropertyConvention though and I specify formula it still adds a column element (there is no column in the database) and NHibernate ignores the formula

Re: [fluent-nhib] Automapping, change collection type from Bag to Set

2011-03-27 Thread Krzysztof Koźmic
James, what I'm trying to do is simply expose IEnumerable instead of Iesi.Collections.ISet in my public interface, but internally keep it as set. If I keep it as bag the objects don't get hydrated properly in some queries with fetch, so it's quite important. So I wouldn't say FNH is not smar

Re: [fluent-nhib] Automapping, change collection type from Bag to Set

2011-03-26 Thread Krzysztof Koźmic
AsSet() or IsSet() ? On 26/03/2011 7:00 PM, Paul Batum wrote: Do you know why Krzysztof can't find AsSet() then? I tried locally now and it comes up for me fine. On Thu, Mar 24, 2011 at 2:02 AM, James Gregory @gmail.com > wrote: Overrides yeah, bu

Re: [fluent-nhib] Automapping, change collection type from Bag to Set

2011-03-23 Thread Krzysztof Koźmic
BTW, looks like this is going to become a serious issue for my project pretty soon (think today). I'd be happy to help out with getting this across the line. If you have a general idea how you'd want this attacked I'm all ears. Krzysztof On 22/03/2011 8:33 PM, James Gregory wrote: Ugh, this ag

Re: [fluent-nhib] Automapping, change collection type from Bag to Set

2011-03-22 Thread Krzysztof Koźmic
I'll buy you a beer in Oslo :) On 22/03/2011 8:33 PM, James Gregory wrote: Ugh, this again. Ok, looks like you've got two issues on top of the 1.2 pile. -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email t

Re: [fluent-nhib] Automapping, change collection type from Bag to Set

2011-03-21 Thread Krzysztof Koźmic
How can I change that in automapping override? Can't see AsSet here... On 22/03/2011 11:05 AM, Paul Batum wrote: You have to map the collection in an automapping override and call AsSet(). You can't change it in conventions, this is a known issue and not an easy fix. On Mon, Mar 21, 2011 at 5

Re: [fluent-nhib] Automapping of one-to-many done right

2011-03-18 Thread Krzysztof Koźmic
structure. If so, apply the convention. 2011/3/18 Krzysztof Koźmic <mailto:krzysztof.koz...@gmail.com>> Hey Paul, It's not for a single Foo and Bar pair in the app. I want that for every bi-directional one-to-many in the app and there are quite a few (and

Re: [fluent-nhib] Automapping of one-to-many done right

2011-03-18 Thread Krzysztof Koźmic
Hey Paul, It's not for a single Foo and Bar pair in the app. I want that for every bi-directional one-to-many in the app and there are quite a few (and that number is going to grow significantly over next few months) hence I want this to be a convention that gets automatically applied as new