Last post Oct 25, 2010 02:55 AM by sjnaughton
Oct 23, 2010 10:41 PM|swapsshah9|LINK
Started evaluating dynamic data around a week back, so not sure if a thread exists for this query.
Has anyone used or evaluated Dynamic Data for implementing a Approval Workflow?
Products Table- ProductName, UnitPrice, Discount, .... ...., State (Sumbitted = 1, Updated = 2, Approved = 3, Rejected = 4)
Each time a Product's Discount is updated, it goes for approval from Senior Management. And only after approval the Product gets its new price.
In my project, I have quite many entities that need approval before they can be accepted or updated.
Thanks in advance! :)
Dynamic data for approval workflow
Dynamic data for content staging
Oct 24, 2010 08:08 AM|sjnaughton|LINK
Since Dynamic Data update the Data directly it may not be an easy fit for your requirements. You couls however leverage WCF Ria Services and the Domain Service in your DD site and abstract away the data access layer form DD. This way youcould have hidden
fields in the table to take the new value and then when approved you could set the visible values to the approved value and clear the approved value. Another way would be to to have a table for field change approvales and submit changes there when a change
was approved the value would then be updated in the actual table. But again the only way I could see you doing this is throught WCF RIA Services DomainService underlaying DD.
See WCF RIA Services for more info.
Dynamic Data 4
WCF RIA Services
Oct 25, 2010 02:11 AM|swapsshah9|LINK
Hi Steve, thanks you your relpy pointing to RIA services.
Am only introduced to RIA services-Silverlight-WPF as well. So the following might sound foolish. :(
Dynamic Data website can also work with Domain Service and Entity Framework I guess. So that will be something like this-
Dynamic Data Website -> Domain Service -> EF
(A sample exisits here-
http://code.msdn.microsoft.com/aspnetddsamples : Using the Domain Service in ASP.NET Applications)
If I am not wrong, all the filtering and hiding colums that you mean to say in your post, happens I guess in the Domain Service. Any specific reason why you suggest using RIA services? also, do you have any pointers where I can use RIA services with Dynamic
Thanks in advance!
Oct 25, 2010 02:55 AM|sjnaughton|LINK
If I am not wrong, all the filtering and hiding columns that you mean to say in your post, happens I guess in the Domain Service.
Any specific reason why you suggest using RIA services?
I believe it will be the only way to do your approval mechanism.
do you have any pointers where I can use RIA services with Dynamic Data Website?
When you install WCF RIA Services, you get a new Dynamic Data project based on WCF RIA Services, so all you do is add your model EF, L2S, NHibernate or any other ORM.