1

I have silverlight application, where I use Entity Framework(PostgreSQL) and WCF(not RIA). Here is the problem:

in database I have table organization and table of contacts. Organization has set of contacts.

EF entity is not a data contract used by wcf. I use convertor to make datacontract from entity and vice versa. So my question is how to save related entities like hibernate saveupdate(cascade="save-update")?

user592040
  • 107
  • 9

1 Answers1

0

Entity framework doesn't have cascade updates. You must manually handle changes = you must manually decide which contracts were modified, which were added and also wich were deleted. MS decided to solve this inconvinience by introducing Self tracking entities but they are not always bullet proof and are harder to use in Silverlight because STEs code must be shared among client and server.

Community
  • 1
  • 1
Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670