Last post Nov 04, 2008 11:37 AM by _keysersoze_
Oct 30, 2008 05:14 PM|_keysersoze_|LINK
I am using EF, and because of a lot of business-rules i have created my own CRUD-methods. Is it possible somehow to use the ObjectDataSource together with my Dynamic Data?
My big issue, and the reason why I am looking at Dynamic Data, is, that I cannot find a way in a normal DetailsView/ObjectDataSource setup to insert and update entities with references to other entities (e.g. a Product entity with a reference to a Category
entity). This does the Dynamic Data solve, but then comes in the issue about using my own insert/update/delete methods.
Oct 30, 2008 09:32 PM|ricka6|LINK
I'll look into what we have planned. In the mean time you might want to review David's comment in
Oct 30, 2008 09:41 PM|davidebb|LINK
I have a
post on using Dynamic Data with ObjectDataSource. However, thst solution doesn't handle references to other entities. We are currently working on a new Business Layer DS that will target this scenario.
Nov 04, 2008 11:37 AM|_keysersoze_|LINK
I am already looking forward to the new business layer datasurce then [:)]
Any comments on what is the best way to get further now then? My only idea at the moment is the add one extra property per reference which can be used to read the Id from the reference or insert a new Id which will be handled in my businesslayer when inserting
or updating the entity.