assigned id is defaulting to Guid.Comb

20 views
Skip to first unread message

Al Todd

unread,
Dec 15, 2012, 8:40:33 AM12/15/12
to fluent-n...@googlegroups.com
Any idea why a property mapped like this:

mapping.Id().GeneratedBy.Assigned();

Would choose the GuidComb() generator?

It is playing havoc with my ISession.Save(entity); calls!

Al Todd

unread,
Dec 15, 2012, 8:46:28 AM12/15/12
to fluent-n...@googlegroups.com
Turns out it was the difference between:

    mapping.Id().GeneratedBy.Assigned();

and

    mapping.Id(x => x.Id).GeneratedBy.Assigned();
Reply all
Reply to author
Forward
0 new messages