add. I'll change it to
once I back to work. then send you another patch? I just figured out
This solution doesn't cover retrieve. For reading data from SP, please
On 11月6日, 上午5时08分, Paul Batum <
paul.ba...@gmail.com> wrote:
> Hi Frank,
>
> I'm in the process of reviewing your patch, but I'm a bit of a noob when it
> comes to using NH with stored procedures so I'm going to have to ask what
> may be a dumb question...
>
> Why do you pass the operation type as a string? From what I can tell of the
> NH mappings schema, the only valid values are "sql-insert", "sql-update",
> "sql-delete", and "sql-delete-all". If thats a case, wouldn't it be better
> to use an enum, such as:
>
> StoredProcedure<T>(StoredProcedureType.SqlInsert, INSERT_SP);
>
> or even:
>
> SqlInsert(INSERT_SP);
>
> My concern is that by having the user type in the string, you are requiring
> them to have good knowledge of HBM XML, which is something that FNH attempts
> to avoid!
>
> Otherwise it looks good! Once we've got this sorted out, I'll write a couple
> of tests to demonstrate the fluent interface and get it into the trunk asap.
>
> Thanks,
>
> Paul Batum
>