+1! very good. I need it

On Thu, Sep 4, 2008 at 6:04 AM, James Kovacs <[EMAIL PROTECTED]>wrote:

> The PersistenceSpecification requires that entities derive from
> FluentNHibernate.Framework.Entity base class and therefore have an Id
> property of type long. The submitted patch removes this requirement allowing
> PersistenceSpecification to be used with any PK name and type. Additionally
> you can use PersistenceSpecification to test any NHibernate mappings (XML,
> NHibernate attributes, Castle ActiveRecord, etc.), not just mappings
> generated with Fluent NHibernate.
>
> http://code.google.com/p/fluent-nhibernate/issues/detail?id=40
>
> 342 passing tests, 10 ignored (marked as such by someone other than me), 0
> failed.
>
> The secret sauce is on line 87:
>
> object firstId = _currentSession.GetIdentifier(first);
>
> This obviates the need for first.Id, which was needed to find the PK to
> feed to Repository.Find<T>(long id).
>
> James
> --
> James Kovacs, B.Sc., M.Sc., MCSD, MCT
> Microsoft MVP - C# Architecture
> http://www.jameskovacs.com
> [EMAIL PROTECTED]
> 403-397-3177 (mobile)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to