[Dolphin] Command Payload?

Dierk König Dierk König
Wed, 1 Apr 2015 01:04:21 +0200


--Apple-Mail-337E16FF-3D69-4540-B5D9-B74811DB6670
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Hi Nils,
It is on purpose that one cannot put a payload on a command. Whatever is rel=
evant state that the command needs to read or write needs to be modeled as a=
 presentation model.=20
In case of a one to many relation, one best goes the same route as in the DB=
: model this like a foreign key. The book has an attribute with a value that=
 contains the PM id of the inventory.=20

What kind of application are you building?

Cheers
Dierk

sent from:mobile=20

> Am 31.03.2015 um 22:56 schrieb Nils <nils__1994@hotmail.de>:
>=20
> Hi,
>=20
> i can't find anything that would allow me to add a payload to a command. =20=

>=20
> Let's assume a usecase where we got a small Application to manage books. w=
e got multiple copys of one book and it should be possible to set the book i=
nformation as an Inventory Object and multiple copys of the book that are pa=
rt of the Inventory. So basically we got a one to many relation(one inventor=
y has many copys). I want each copy to be a seperate PM because individual i=
nvormations need to be stored. how would you do this?=20
>=20
> Any advice is appreciated.

--Apple-Mail-337E16FF-3D69-4540-B5D9-B74811DB6670
Content-Type: text/html;
	charset=utf-8
Content-Transfer-Encoding: 7bit

<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Nils,</div><div>It is on purpose that one cannot put a payload on a command. Whatever is relevant state that the command needs to read or write needs to be modeled as a presentation model.&nbsp;</div><div>In case of a one to many relation, one best goes the same route as in the DB: model this like a foreign key. The book has an attribute with a value that contains the PM id of the inventory.&nbsp;</div><div><br></div><div>What kind of application are you building?<br><br>Cheers</div><div>Dierk<div><br></div><div>sent from:mobile&nbsp;</div></div><div><br>Am 31.03.2015 um 22:56 schrieb Nils &lt;<a href="mailto:nils__1994@hotmail.de">nils__1994@hotmail.de</a>&gt;:<br><br></div><blockquote type="cite"><div>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hi,<br><br>i can't find anything that would allow me to add a payload to a command.&nbsp; <br><br>Let's assume a usecase where we got a small Application to manage books. we got multiple copys of one book and it should be possible to set the book information as an Inventory Object and multiple copys of the book that are part of the Inventory. So basically we got a one to many relation(one inventory has many copys). I want each copy to be a seperate PM because individual invormations need to be stored. how would you do this? <br><br>Any advice is appreciated.<br> 		 	   		  </div>
</div></blockquote></body></html>
--Apple-Mail-337E16FF-3D69-4540-B5D9-B74811DB6670--