Discussion:
[Bamboo.Prevalence-users] How to migrate data when moving type?
Dan Lukinykh
2004-09-20 07:37:17 UTC
Permalink
Hi,



I faced this problem and was not able to solve it with the help of
VersionMigrator v. 1.0.



I have a class containing enum in it:



namespace My.NameSpace

{

[Serializable]

public class MyClass

{

[Flags]

public enum MyEnum : byte

{

:

}

:

MyEnum myField;

}

:

}



I decided to move my class to another namespace, for example,
My.NameSpace.NewFolder.

I wrote the migration plan like follows:



<typeMapping type="My.NameSpace.NewFolder.MyClass">

<alias>My.NameSpace.MyClass</alias>

</typeMapping>



I'm not able to migrate the snapshot with this plan, and get this:



My.NameSpace.MyClass+MyEnum bound to My.NameSpace.MyClass+MyEnum, Domain,
Vers

ion=1.0.1724.16642, Culture=neutral, PublicKeyToken=null

Type is not resolved for member My.NameSpace.MyClass+MyEnum, Domain,
Version=1.0.1724.1664

2, Culture=neutral, PublicKeyToken=null.



If the class doesn't contain any enum definitions, things go just fine!

Please advice.



Thanks!

Dan

Loading...