Probably its not important for you now, but maybe it will help others :)
Leave mapping as-is and in procedure add the same formula as in mapping, 
and change your .hbm.xml file to map this column into your property.
In example fluentmapping:

Map(n => 
n.SomeField).Formula("polygon.ToString()").CustomType("StringClob").CustomSqlType("nvarchar(max)");

hbm file

<return-property name="SomeField" column="SomeField"></return-property>

and in proc
...
,polygon.ToString() as SomeField
...

It worked for me :)

Regards,
Andrzej

W dniu wtorek, 31 grudnia 2013 19:14:31 UTC+1 użytkownik Nathan Eary 
napisał:
>
> I have an entity with a calculated property using the formula 
> configuration. This works great when I am using Linq or regular queries. I 
> want to use a stored procedure to do some workflow modifications to a row 
> of data for this entity and return the updated record, including the 
> calculated field. What I am not sure how to do is configure the property to 
> populate from a column name in the result when I use the stored procedure, 
> but then use the formula when I query the table directly.  How might I do 
> this?
>
> I am using Fluent NHibernate to map my entities.
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to