I have some migration questions:
Removing class with many to many relationship
[HierarchyRoot]
public class MyEntity : Entity
{
[Field, Key]
public int Id { get; private set; }
[Field(Length = 100)]
public string Text { get; set; }
}
[HierarchyRoot]
public class MyGroup : Entity
{
[Field, Key]
public int Id { get; private set; }
[Field]
public EntitySet<MyEntity> MyEntities { get; private set; }
}
I want to remove the 'MyGroup' class : I'm adding an upgrade hint with 'MyGroup' type but I get this exception at domain build:
Extracted schema is not equal to the target schema. Details:
Schema comparison result: TargetIsSubset
Has unsafe actions: true
Has column type changes: false
Compatible in ValidateLegacy mode: unknown
Unsafe actions:
RemoveNode, Path=Tables/MyGroup-MyEntities-MyEntity
Removing an inner class
Is it possible to document the syntax for removing an inner class in manual?
For example you have to use the '+' character to remove an inner class.
hints.Add(new RemoveTypeHint("Test.MyEntity+MyInnerEntity"));
asked
Jul 16 '12 at 06:37
olorin
358●87●87●92