Enable dragging of entity classes to design surface


I would like the designer to behave like the Visual Studio class diagram in the following way. Allow a class file to be dragged from the Solution Explorer/Navigator to the design surface.

The class represented in the file should then be drawn and represented accordingly. Modification on the class should automatically be reflected on the designer and vice-versa.


terrorix wrote Jun 8, 2011 at 3:05 PM

First part of feature sounds interesting (to get content of c# class from file into designer) , and can (should) be done in future.
But second one, to sync changes made on file on disc with designer model will not be implemented. The reason is that this designer works in way that it generates classes, where this classes has not to be modified by users. But are marked as partial which means you can extend generated class in new c# file marked as partial. This way works also other ORM designers.
Final - it will be one-way import, dragged c# files into designer will be generated into visual entities but will not sync changes into file from which was imported.

terrorix wrote Jun 8, 2011 at 3:09 PM

After import file into designer, designer will change content of such file to mark class as "partial" and to remove properties marked with [Field] (to be not in collision with generated file)