Save and Retrieve Blazor Diagram #391
Replies: 3 comments 3 replies
-
I also want to know |
Beta Was this translation helpful? Give feedback.
-
I also would like to persist my diagrams. I had the idea to store the nodes in a database. However when I do the migration I receive an exception with the following error message: "No suitable constructor was found for entity type 'Rectangle'. The following constructors had parameters that could not be bound to properties of the entity type: cannot bind 'left', 'top', 'right', 'bottom' in 'Rectangle(double left, double top, double right, double bottom)'; cannot bind 'position', 'size' in 'Rectangle(Point position, Size size)'." I am quite puzzled. Anyone any idea? Any help appreciated! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info
…On Sun, Dec 24, 2023, 1:38 AM mdouble, ***@***.***> wrote:
I got around the rectangle problem by explicitly mapping the rectangle
properties.
modelBuilder.Entity<Blazor.Diagrams.Core.Geometry.Rectangle>(b => {
b.Property(e => e.Left); b.Property(e => e.Top); b.Property(e => e.Right);
b.Property(e => e.Bottom); });
This works partially for the GroupModel properties, too. However, I have
not succeeded mapping the _children yet.
—
Reply to this email directly, view it on GitHub
<#391 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADCULFAPMDCRQ27ILBLZXFTYK4JJTAVCNFSM6AAAAABAHAF4GCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TSMZUHEYTS>
.
You are receiving this because you authored the thread.Message ID:
<Blazor-Diagrams/Blazor.Diagrams/repo-discussions/391/comments/7934919@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Hi guys, anybody who knows how can I save and retrieve Blazor.Diagrams?
Beta Was this translation helpful? Give feedback.
All reactions