UPDATE: i forgot to sell that i'm using nhiebrnate 2.0.1 (but if
needed i can upgrade to the last version).
i'm using .net 2.0
i found this solution to get a new id
public static TId GenerateId<TEnt, TId>()
{
TEnt ent = //create with reflection on the type TEnt
ISessionFactoryImplementor factory = SessionFactory as
ISessionFactoryImplementor;
object obj = factory.GetIdentifierGenerator(typeof(T))
.Generate(GetSession() as
ISessionImplementor, ent);
return (TId)obj;
}
i want know if there 're same problem using that, as i said before
maybe there'are same integration problems with the normal nhibernate
work (for example becouse i need to syncronize same calls with
nhibernate engine)
thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---