Insert in NHibernate.

21 views
Skip to first unread message

Leonid Krogliak

unread,
Jul 9, 2011, 1:23:58 PM7/9/11
to nhusers
Hello .
My table has only one column. Its type in .Net is long.
my function has parameter IList<long> .
I need insert all values from IList to table.
How can I do it without cast to another object ?
Can I map table to long instead my class ??
May by it's important : this table is temporary table in ORACLE .
Thanks

Oskar Berggren

unread,
Jul 9, 2011, 2:48:57 PM7/9/11
to nhu...@googlegroups.com
I don't see how NHibernate has anything to do with this. Why not a
simple sequence of insert statements?

/Oskar


2011/7/9 Leonid Krogliak <krog...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups "nhusers" group.
> To post to this group, send email to nhu...@googlegroups.com.
> To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
>
>

Fabio Maulo

unread,
Jul 10, 2011, 9:40:02 AM7/10/11
to nhu...@googlegroups.com
<element type="long" column="ElementOfYourList"/>

Leonid

unread,
Jul 10, 2011, 1:12:52 PM7/10/11
to nhu...@googlegroups.com
On Sun, Jul 10, 2011 at 4:40 PM, Fabio Maulo <fabio...@gmail.com> wrote:
<element type="long" column="ElementOfYourList"/>

--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/QKzqamfRhs4J.

To post to this group, send email to nhu...@googlegroups.com.
To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
Explain please, how can I use It

Fabio Maulo

unread,
Jul 12, 2011, 8:49:01 AM7/12/11
to nhu...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages