you know , when we serialize an object that have collections, because
the collections is from NHibernate types (bag, list , set , .... ) ,
for deserializing them , .Net framework need the nHibernate assembly
to be refrenced otherwise it throw an exception says that it need's
that assembly to deserialize. so assume that i serialize my objects
with nhibernate 1.2.1 and distribute it among the all organization
users as a XML file, they worked on it , and now they returned it to
be to be saved on database. therefore i should deserialize them and
then save/update them. but between these distribute and get back , i
changed the NHibernate version and upgrade it to 2.0.1 , first of all
it throws an exception says that it need NHIbernate 1.2.1 assembly to
deserialize , and after that i going into the exception found out that
it needs a class named "Nhibernate.Impl.CollectionEntry" and as it
does not exists in 2.0.1 version anymore , it couldn't find and
deserialize it. and you know there is a Binding method in .Net
serializer for this kind of situations, if the serializing assemblies
does not exist for deserialization , in this method programmer can map
the old Classes to new or equivalence of them manually.  i can
manually map that class if i know where is it now, maybe this class
was moved to a new namespace or changed it's name to something new. as
i am sure that the NHibernate team didn't remove the class , so i just
want to find where it is and use it for Bindings and solve the
problem.

thanks.

On May 20, 2:49 pm, Fabio Maulo <[email protected]> wrote:
> I don't understand... your serializer need
> Nhibernate.Impl.CollectionEntry ?Collections
> in NH2.0.1 are serializable (that is slow but it 
> work)http://nhjira.koah.net/browse/NH-1323
>
> 2009/5/20 Arman <[email protected]>
>
>
>
>
>
> > it is a large enterprise project, it used NHibernate 1.2.1,
> > now i want to upgrade it to nhibernate 2.0.1, as we serialized some of
> > our domainclasses objects , for deserializing them , it needs
> > Nhibernate.Impl.CollectionEntry from NHibernate 1.2.1 assembly , now
> > if i change the nhibernate dll's to 2.0.1 , the objects can not be
> > deserialized because NHibernate 2.0.1 does not have any class named
> > "Nhibernate.Impl.CollectionEntry" .
>
> > so my question is , how can i solve this problem ?
>
> > On Apr 27, 11:06 pm, Fabio Maulo <[email protected]> wrote:
> > > What you are doing ?
>
> > > 2009/4/27 Arman <[email protected]>
>
> > > > hi,
>
> > > > i was using nhibernate 1.2.1 , now i moved to 2.0.1 and i saw that
> > > > there is no implementation for class Nhibernate.Impl.CollectionEntry
> > > > in this version, where is it ? is it moved to other namespace?
> > > > or what is it's equivalence ?
>
> > > > thanks.
>
> > > --
> > > Fabio Maulo
>
> --
> Fabio Maulo
--~--~---------~--~----~------------~-------~--~----~
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