I'm still struggling with this.

Am I asking for something that is just not supported in nhibernate? Is
the stored procedure support limited to cases where there is an exact
match between the parameters of the stored procedure and the columns
in the table?

On Nov 26, 11:38 am, Paul Batum <[email protected]> wrote:
> I have an entity that must be inserted using a stored procedure. The
> stored procedure takes a parameter that does not map to a column in
> the table, it is used by some logic in the stored procedure. I have no
> problem with adding a property to my object to hold the value to be
> passed to the stored procedure - my issue is that I do not know how to
> tell NHibernate not to attempt to load this property when selecting
> the entity.
>
> Essentially what I am looking for is in the same equivalent of insert
> = 'false' but for selects rather than inserts. I tried using
> Access.Noop but for some reason the property is still included in the
> select query. Specifying a dummy formula (such as "(0)") prevents an
> attempt to select the column, but it also prevents the property from
> being passed as a parameter to the stored procedure (even when I
> explicitly set insert='true' !).
>
> Thanks for your help,
>
> Paul Batum

--

You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.


Reply via email to