I changed in customer map to:
Id(x => x.CustomerID).GeneratedBy.Hilo("1000").Column("CustomerID");

and in customer group map:
Id(x => x.CustomerGroupID).GeneratedBy .Hilo("1000") .Column(
"CustomerGroupID");

the same thing happened, batch still not work.

2012/1/4 Jason Meckley <[email protected]>

> it can't, Identity does not work with batching. Try this: switch the POID
> strategy to hilo and profile the queries. they will be batched. then switch
> back to identity, they won't batch.
>
> Any POID managed by the DB means NH must execute the command at the time
> it's queued (save, delete, etc). POIDs that are managed by NH itself (hilo,
> guid, guid.comb) allow NH to queue the commands and execute them in batch,
> if the db allows for batched writes, when the session is flushed.
>
>  --
> 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/-/w4ree8xy7mAJ.
>
> 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.
>


-- 
anas jaber-.Net developer-ILS

-- 
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